summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorHelge Mader <ma@dev.tdt.de>2020-07-24 10:27:07 +0200
committerHelge Mader <ma@dev.tdt.de>2020-07-24 11:03:40 +0200
commit95d004fc5d7d2716794839abfbae0d218b95eaee (patch)
treea3cb02c1a8e92e3a8bd379d4b24acfc27eba9151 /modules
parente8cba39201da29cd272fab101b8bfcad8aef0022 (diff)
luci-base: fix widgets CBIUserSelect appending list on load
The user list was appended to the dropdown again each time the page is loaded. Signed-off-by: Helge Mader <ma@dev.tdt.de>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/tools/widgets.js2
1 files changed, 2 insertions, 0 deletions
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 7f724a17e..1de8a08bc 100644
--- 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]);
}