Merge pull request #4286 from TDT-AG/pr/20200724-luci-base
luci-base: fix widgets CBIUserSelect appending list on load
This commit is contained in:
commit
14535748cb
1 changed files with 2 additions and 0 deletions
|
@ -580,6 +580,8 @@ var CBIUserSelect = form.ListValue.extend({
|
||||||
|
|
||||||
load: function(section_id) {
|
load: function(section_id) {
|
||||||
return getUsers().then(L.bind(function(users) {
|
return getUsers().then(L.bind(function(users) {
|
||||||
|
delete this.keylist;
|
||||||
|
delete this.vallist;
|
||||||
for (var i = 0; i < users.length; i++) {
|
for (var i = 0; i < users.length; i++) {
|
||||||
this.value(users[i]);
|
this.value(users[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue