diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-12-21 00:54:31 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-12-21 00:54:31 +0100 |
commit | 1d55829ba6398dcdabc84282007f2d779d319409 (patch) | |
tree | d0694f42dacc866f26c8f82f45ae195704abac3f /settings | |
parent | 63fa943a52d441f7eec4222b6c1eac0362908024 (diff) | |
download | nextcloud-server-1d55829ba6398dcdabc84282007f2d779d319409.tar.gz nextcloud-server-1d55829ba6398dcdabc84282007f2d779d319409.zip |
multiSelect: Modified users.js to only update other multiSelects.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index b0e30feb80c..d1917267980 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -177,9 +177,9 @@ var UserList = { } else { checkHandeler = false; } - var addGroup = function (group) { + var addGroup = function (select, group) { $('select[multiple]').each(function (index, element) { - if ($(element).find('option[value="' + group + '"]').length == 0) { + if ($(element).find('option[value="' + group + '"]').length === 0 && select.data('msid') !== $(element).data('msid')) { $(element).append('<option value="' + group + '">' + group + '</option>'); } }) |