Fixed keyword list not being in a list element
authorAlexander Ebert <ebert@woltlab.com>
Tue, 18 Jun 2013 11:47:14 +0000 (13:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 18 Jun 2013 11:47:14 +0000 (13:47 +0200)
wcfsetup/install/files/js/WCF.Search.Message.js

index 17a4aa96ad477a9e5e28a444a27879c473b44110..aefcd88da683c8caeb7235372c303b4b55fbfab7 100644 (file)
@@ -53,7 +53,7 @@ WCF.Search.Message.KeywordList = WCF.Search.Base.extend({
                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(); });
@@ -69,7 +69,7 @@ WCF.Search.Message.KeywordList = WCF.Search.Base.extend({
         */
        _createListItem: function(item) {
                this._divider.show();
-               this._list.show();
+               this._list.parent().show();
                
                this._super(item);
        },
@@ -83,7 +83,7 @@ WCF.Search.Message.KeywordList = WCF.Search.Base.extend({
                }
                
                this._divider.hide();
-               this._list.hide().empty();
+               this._list.empty().parent().hide();
                
                WCF.CloseOverlayHandler.removeCallback('WCF.Search.Base');