Fixed js error in acp login form
authorMarcel Werk <burntime@woltlab.com>
Mon, 16 Jan 2017 15:13:02 +0000 (16:13 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 Jan 2017 15:13:08 +0000 (16:13 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js

index d554c3be15b64180390bfba4f9c6778ac2edab09..ce74e5f6b459d59f5c8bfd41cca200cce1a86c6b 100644 (file)
@@ -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();