diff options
Diffstat (limited to 'apps/user_ldap/js/wizard/wizardTabGeneric.js')
-rw-r--r-- | apps/user_ldap/js/wizard/wizardTabGeneric.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js index 9997d6e1b04..7b0df4992d6 100644 --- a/apps/user_ldap/js/wizard/wizardTabGeneric.js +++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js @@ -228,10 +228,12 @@ OCA = OCA || {}; * @param {Array} options */ equipMultiSelect: function($element, options) { - $element.empty(); - for (var i in options) { - var name = options[i]; - $element.append($('<option>').val(name).text(name).attr('title', name)); + if($element.find('option').length === 0) { + $element.empty(); + for (var i in options) { + var name = options[i]; + $element.append($('<option>').val(name).text(name).attr('title', name)); + } } if(!$element.hasClass('ldapGroupList')) { $element.multiselect('refresh'); |