var $dropdownMenu = WCF.Dropdown.getDropdownMenu(this._searchInput.parents('.dropdown').wcfIdentify());
var $lastDivider = $dropdownMenu.find('li.dropdownDivider').last();
this._divider = $('<li class="dropdownDivider" />').hide().insertBefore($lastDivider);
- this._list = $('<li class="dropdownList" />').hide().insertBefore($lastDivider);
+ this._list = $('<li class="dropdownList"><ul /></li>').hide().insertBefore($lastDivider).children('ul');
// supress clicks on checkboxes
$dropdownMenu.find('input, label').on('click', function(event) { event.stopPropagation(); });
*/
_createListItem: function(item) {
this._divider.show();
- this._list.show();
+ this._list.parent().show();
this._super(item);
},
}
this._divider.hide();
- this._list.hide().empty();
+ this._list.empty().parent().hide();
WCF.CloseOverlayHandler.removeCallback('WCF.Search.Base');