Add ability to exclude items from mobile navigation
authorJoshua Rüsweg <josh@bastelstu.be>
Wed, 1 Aug 2018 18:25:47 +0000 (20:25 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Wed, 1 Aug 2018 18:25:47 +0000 (20:25 +0200)
See #2508

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js

index afc3406a81992d016f4fe5339d1ae34f97272b52..96964e4e69e6c66f68ac31fb801dda8200388b7e 100644 (file)
@@ -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 = '<a href="#">' + elBySel('span:not(.icon)', button).textContent + '</a>';