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>
This commit is contained in:
parent
e8cba39201
commit
95d004fc5d
1 changed files with 2 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue