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

View file

@ -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>');
}
})