projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-base: ui.js: resolve parent ul early in UIDropdown.toggleItem()
[project/luci.git]
/
modules
/
luci-base
/
htdocs
/
luci-static
/
resources
/
ui.js
diff --git
a/modules/luci-base/htdocs/luci-static/resources/ui.js
b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 3ada9e375a61a480b35bf9f88ab920f5e54179b1..c8ebef66911c646bd119c71f3deb8a15c155aa0f 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/ui.js
@@
-1360,6
+1360,8
@@
var UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ {
/** @private */
toggleItem: function(sb, li, force_state) {
+ var ul = li.parentNode;
+
if (li.hasAttribute('unselectable'))
return;
@@
-1436,7
+1438,7
@@
var UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ {
this.closeDropdown(sb, true);
}
- this.saveValues(sb,
li.parentNode
);
+ this.saveValues(sb,
ul
);
},
/** @private */