From: Marcel Werk Date: Mon, 16 Jan 2017 15:13:02 +0000 (+0100) Subject: Fixed js error in acp login form X-Git-Tag: 3.0.1~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=339d82642a6e7395eca45a1750cc4b3a999d709d;p=GitHub%2FWoltLab%2FWCF.git Fixed js error in acp login form --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js index d554c3be15..ce74e5f6b4 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js @@ -141,7 +141,7 @@ define( }); _main.addEventListener(WCF_CLICK_EVENT, function() { - _searchBar.classList.remove('open'); + if (_searchBar) _searchBar.classList.remove('open'); if (Environment.platform() === 'ios' && scrollTop !== null) { UiScreen.scrollEnable();