From: Matthias Schmidt Date: Sat, 12 Oct 2013 13:24:19 +0000 (+0200) Subject: Adds scrollableDropdownMenu support for label choosers X-Git-Tag: 2.0.0_Beta_11~39^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a6867d9007c17261c25b6d1cc601b22508be207f;p=GitHub%2FWoltLab%2FWCF.git Adds scrollableDropdownMenu support for label choosers --- diff --git a/wcfsetup/install/files/js/WCF.Label.js b/wcfsetup/install/files/js/WCF.Label.js index d02625f96e..a9ef8b8ac1 100644 --- a/wcfsetup/install/files/js/WCF.Label.js +++ b/wcfsetup/install/files/js/WCF.Label.js @@ -184,20 +184,26 @@ WCF.Label.Chooser = Class.extend({ $dropdownMenu = WCF.Dropdown.getDropdownMenu($containerID); } + var $additionalList = $dropdownMenu; + if ($dropdownMenu.getTagName() == 'div' && $dropdownMenu.children('.scrollableDropdownMenu').length) { + $additionalList = $('