Fixed search suggestions
authorAlexander Ebert <ebert@woltlab.com>
Tue, 28 May 2013 15:29:48 +0000 (17:29 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 28 May 2013 15:29:48 +0000 (17:29 +0200)
wcfsetup/install/files/js/WCF.Search.Message.js
wcfsetup/install/files/js/WCF.js

index 98eac69bf062552544a441d5f7cfaf993b893460..7203a571ea22abf3a11023919c0afac75dec44d4 100644 (file)
@@ -50,7 +50,7 @@ WCF.Search.Message.KeywordList = WCF.Search.Base.extend({
                        }
                }, this));
                
-               var $dropdownMenu = this._searchInput.next('.dropdownMenu');
+               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);
index 451ee0bf509804362e902ee69ff1cc67ebf60f31..9809f956f2a9a036c440bea012dd4c099073187e 100755 (executable)
@@ -5437,8 +5437,6 @@ WCF.Search.Base = Class.extend({
                        this._createListItem($item);
                }
                
-               WCF.Dropdown.toggleDropdown(this._searchInput.parent().wcfIdentify());
-               
                WCF.CloseOverlayHandler.addCallback('WCF.Search.Base', $.proxy(function() { this._clearList(); }, this));
                
                // pre-select first item