luci-base: form.js: ButtonValue: pass sid as first onclick argument

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 311bcd4b5c)
This commit is contained in:
Jo-Philipp Wich 2020-02-12 18:31:36 +01:00
parent 920433457d
commit 405f5e837f

View file

@ -1893,7 +1893,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