diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-18 15:08:19 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-18 15:08:19 +0200 |
commit | 53ac685092d62c84cc2add8ae726487b339d9576 (patch) | |
tree | 632f31de014d752215a1a27d30c861df8b99be46 /modules/luci-base/htdocs | |
parent | 934fa275b23f93ca6fe4eac5db6a6a6ee3f9581c (diff) |
luci-base: form.js: fix default click action of button options
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 7dc63ceb5a..0fa0008c70 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -1822,7 +1822,7 @@ var CBIButtonValue = CBIValue.extend({ E('button', { 'class': 'cbi-button cbi-button-%s'.format(this.inputstyle || 'button'), 'click': L.ui.createHandlerFn(this, this.onclick || function(ev) { - ev.target.previousElementSibling.value = ev.target.value; + ev.currentTarget.parentNode.nextElementSibling.value = value; return this.map.save(); }) }, [ btn_title ]) |