multiSelect: Modified users.js to only update other multiSelects.

This commit is contained in:
Thomas Tanghus 2012-12-21 00:54:31 +01:00
parent 63fa943a52
commit 1d55829ba6
1 changed files with 2 additions and 2 deletions

View File

@ -177,9 +177,9 @@ var UserList = {
} else { } else {
checkHandeler = false; checkHandeler = false;
} }
var addGroup = function (group) { var addGroup = function (select, group) {
$('select[multiple]').each(function (index, element) { $('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>'); $(element).append('<option value="' + group + '">' + group + '</option>');
} }
}) })