From: Alexander Ebert Date: Tue, 29 Aug 2017 09:34:34 +0000 (+0200) Subject: Close the scope selection when closing the search X-Git-Tag: 3.1.0_Alpha_2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c444d1af41ee824f48f4fa8d774db800790a285f;p=GitHub%2FWoltLab%2FWCF.git Close the scope selection when closing the search --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js index 559077844a..5411d09f54 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js @@ -6,7 +6,7 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Page/Header/Fixed */ -define(['Core', 'EventHandler', 'Ui/Alignment', 'Ui/CloseOverlay', 'Ui/Screen'], function(Core, EventHandler, UiAlignment, UiCloseOverlay, UiScreen) { +define(['Core', 'EventHandler', 'Ui/Alignment', 'Ui/CloseOverlay', 'Ui/SimpleDropdown', 'Ui/Screen'], function(Core, EventHandler, UiAlignment, UiCloseOverlay, UiSimpleDropdown, UiScreen) { "use strict"; var _pageHeader, _pageHeaderContainer, _pageHeaderPanel, _pageHeaderSearch, _searchInput, _topMenu, _userPanelSearchButton; @@ -111,6 +111,10 @@ define(['Core', 'EventHandler', 'Ui/Alignment', 'Ui/CloseOverlay', 'Ui/Screen'], }); _searchInput.blur(); + + // close the scope selection + var scope = elBySel('.pageHeaderSearchType', _pageHeaderSearch); + UiSimpleDropdown.close(scope.id); } }; });