From 311bcd4b5cb9f630e41f4fc5e08a6993fddc289a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 12 Feb 2020 18:31:36 +0100 Subject: [PATCH] luci-base: form.js: ButtonValue: pass sid as first onclick argument Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2