summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-18 15:08:19 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-18 15:08:19 +0200
commit53ac685092d62c84cc2add8ae726487b339d9576 (patch)
tree632f31de014d752215a1a27d30c861df8b99be46
parent934fa275b23f93ca6fe4eac5db6a6a6ee3f9581c (diff)
luci-base: form.js: fix default click action of button options
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js2
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 7dc63ceb5..0fa0008c7 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 ])