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

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-02-12 18:31:36 +01:00
parent 369cb62aaf
commit 311bcd4b5c

View 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