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: https://git.librecmc.org/?a=commitdiff_plain;h=405f5e837fe61769469b68682885a8a91e728113;p=oweals%2Fluci.git luci-base: form.js: ButtonValue: pass sid as first onclick argument Signed-off-by: Jo-Philipp Wich (cherry picked from commit 311bcd4b5cb9f630e41f4fc5e08a6993fddc289a) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 4ce5e45eb..aecb6227c 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -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