From 4e3f9610097346c708a37cc3ba1a1d0bc447fe59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Wed, 1 Aug 2018 20:25:47 +0200 Subject: [PATCH] Add ability to exclude items from mobile navigation See #2508 --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js index afc3406a81..96964e4e69 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js @@ -367,7 +367,7 @@ define( }, _rebuildMobileNavigation: function (navigation) { - elBySelAll('.button', navigation, function (button) { + elBySelAll('.button:not(.ignoreMobileNavigation)', navigation, function (button) { var item = elCreate('li'); if (button.classList.contains('active')) item.className = 'active'; item.innerHTML = '' + elBySel('span:not(.icon)', button).textContent + ''; -- 2.20.1