From: Alexander Ebert Date: Mon, 4 Nov 2013 19:48:37 +0000 (+0100) Subject: Fixed pre-selection label dropdowns X-Git-Tag: 2.0.0_RC_1~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7da7b3fc5e6d40f864e1319007add38db6b09f71;p=GitHub%2FWoltLab%2FWCF.git Fixed pre-selection label dropdowns --- diff --git a/wcfsetup/install/files/js/WCF.Label.js b/wcfsetup/install/files/js/WCF.Label.js index a9ef8b8ac1..48a03aebab 100644 --- a/wcfsetup/install/files/js/WCF.Label.js +++ b/wcfsetup/install/files/js/WCF.Label.js @@ -139,7 +139,7 @@ WCF.Label.Chooser = Class.extend({ // pre-select labels if ($.getLength(selectedLabelIDs)) { for (var $groupID in selectedLabelIDs) { - WCF.Dropdown.getDropdownMenu(this._groups[$groupID].wcfIdentify()).children('li').each($.proxy(function(index, label) { + WCF.Dropdown.getDropdownMenu(this._groups[$groupID].wcfIdentify()).find('> ul > li:not(.dropdownDivider)').each($.proxy(function(index, label) { var $label = $(label); var $labelID = $label.data('labelID') || 0; if ($labelID && selectedLabelIDs[$groupID] == $labelID) {