git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e8cba39
)
luci-base: fix widgets CBIUserSelect appending list on load
author
Helge Mader
<redacted>
Fri, 24 Jul 2020 08:27:07 +0000
(10:27 +0200)
committer
Helge Mader
<redacted>
Fri, 24 Jul 2020 09:03:40 +0000
(11:03 +0200)
The user list was appended to the dropdown again each time the page is loaded.
Signed-off-by: Helge Mader <redacted>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
index 7f724a17e42c851aed57fa180762d1744f8ff9d9..1de8a08bc3b5ecc160684cac2652c37038173f9e 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
@@
-580,6
+580,8
@@
var CBIUserSelect = form.ListValue.extend({
load: function(section_id) {
return getUsers().then(L.bind(function(users) {
+ delete this.keylist;
+ delete this.vallist;
for (var i = 0; i < users.length; i++) {
this.value(users[i]);
}
git clone https://git.99rst.org/PROJECT