From 46c6fab4189e56519d4275e9d6464f822b216840 Mon Sep 17 00:00:00 2001 From: hanakin Date: Thu, 7 May 2020 00:39:25 -1000 Subject: [PATCH] [ticket/16237] Remove responsive menu js stuff PHPBB3-16237 --- phpBB/styles/prosilver/template/forum_fn.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 1c83f9953a..0b3585e3e1 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -452,25 +452,14 @@ function parseDocument($container) { $container.find(selector).each(function() { var $this = $(this), filterSkip = '.breadcrumbs, [data-skip-responsive]', - filterLast = '.edit-icon, .quote-icon, [data-last-responsive]', + filterLast = '[data-last-responsive]', $linksAll = $this.children(), $linksNotSkip = $linksAll.not(filterSkip), // All items that can potentially be hidden $linksFirst = $linksNotSkip.not(filterLast), // The items that will be hidden first $linksLast = $linksNotSkip.filter(filterLast), // The items that will be hidden last persistent = $this.attr('id') === 'nav-main', // Does this list already have a menu (such as quick-links)? - html = '', slack = 3; // Vertical slack space (in pixels). Determines how sensitive the script is in determining whether a line-break has occurred. - // Add a hidden drop-down menu to each links list (except those that already have one) - if (!persistent) { - if ($linksNotSkip.is('.rightside')) { - $linksNotSkip.filter('.rightside:first').before(html); - $this.children('.responsive-menu').addClass('rightside'); - } else { - $this.append(html); - } - } - // Set some object references and initial states var $menu = $this.children('.responsive-menu'), $menuContents = $menu.find('.dropdown-contents'),