summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-30 21:29:38 +0100
committerGitHub <noreply@github.com>2020-10-30 21:29:38 +0100
commit5a485f8c686cdc918c008e75bbf96bc51515d6aa (patch)
treeed3e8292d597c9b295aebbb11dfa38b02d6cc78d /modules
parentbd40525a69fe591b5ab487df25238401196cb77a (diff)
parentee9b3a4e9482222da41dfb884e6185d6180147f1 (diff)
Merge pull request #4531 from oldium/add-widget-changed
luci-base: Fix using isActive in widget-change notification.
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 612c8ff94..70f156c72 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -3351,10 +3351,10 @@ var CBIValue = CBIAbstractValue.extend(/** @lends LuCI.form.Value.prototype */ {
optionEl.classList.add('hidden');
optionEl.addEventListener('widget-change',
- L.bind(this.handleValueChange, this, section_id, {}));
+ L.bind(this.map.checkDepends, this.map));
optionEl.addEventListener('widget-change',
- L.bind(this.map.checkDepends, this.map));
+ L.bind(this.handleValueChange, this, section_id, {}));
dom.bindClassInstance(optionEl, this);