luci-base: form.js: ButtonValue: pass sid as first onclick argument
authorJo-Philipp Wich <jo@mein.io>
Wed, 12 Feb 2020 17:31:36 +0000 (18:31 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 13 Feb 2020 18:26:33 +0000 (19:26 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index 80b1393d5f6aad168c1d28bf773707213bea71ae..b31dac7145918f34e6124c16e5c39aaf2775b997 100644 (file)
@@ -1897,7 +1897,7 @@ var CBIButtonValue = CBIValue.extend({
                                        'click': L.ui.createHandlerFn(this, this.onclick || function(ev) {
                                                ev.currentTarget.parentNode.nextElementSibling.value = value;
                                                return this.map.save();
-                                       })
+                                       }, section_id)
                                }, [ btn_title ])
                        ]);
                else