From: Matthias Schmidt Date: Sat, 1 Jun 2013 15:34:11 +0000 (+0200) Subject: Fixes issue of periodically hidden search suggestions X-Git-Tag: 2.0.0_Beta_3~64^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=596a5751b1eec953b0e74367165cc70e0ce546cf;p=GitHub%2FWoltLab%2FWCF.git Fixes issue of periodically hidden search suggestions --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 1dd42adbfc..ed8265acca 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5290,7 +5290,7 @@ WCF.Search.Base = Class.extend({ data: { excludedSearchValues: this._excludedSearchValues, searchString: $content - } + } }; this._proxy.setOption('data', { @@ -5442,7 +5442,7 @@ WCF.Search.Base = Class.extend({ WCF.CloseOverlayHandler.addCallback('WCF.Search.Base', $.proxy(function() { this._clearList(); }, this)); - if (!this._list.is(':visible')) { + if (!WCF.Dropdown.getDropdownMenu(this._searchInput.parents('.dropdown').wcfIdentify()).hasClass('dropdownOpen')) { WCF.Dropdown.toggleDropdown(this._searchInput.parents('.dropdown').wcfIdentify()); } @@ -5521,7 +5521,11 @@ WCF.Search.Base = Class.extend({ this._searchInput.val(''); } - this._list.removeClass('dropdownOpen').end().empty(); + // close dropdown + WCF.Dropdown.getDropdown(this._searchInput.parents('.dropdown').wcfIdentify()).removeClass('dropdownOpen'); + WCF.Dropdown.getDropdownMenu(this._searchInput.parents('.dropdown').wcfIdentify()).removeClass('dropdownOpen'); + + this._list.end().empty(); WCF.CloseOverlayHandler.removeCallback('WCF.Search.Base');