From: Jo-Philipp Wich Date: Wed, 12 Feb 2020 17:31:36 +0000 (+0100) Subject: luci-base: form.js: ButtonValue: pass sid as first onclick argument X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=311bcd4b5cb9f630e41f4fc5e08a6993fddc289a;p=project%2Fluci.git luci-base: form.js: ButtonValue: pass sid as first onclick argument Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 80b1393d5f..b31dac7145 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -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