mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-02 16:18:53 +00:00
[ticket/16237] Remove responsive menu js stuff
PHPBB3-16237
This commit is contained in:
parent
277a5b4229
commit
46c6fab418
1 changed files with 1 additions and 12 deletions
|
@ -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 = '<li class="responsive-menu hidden"><a href="javascript:void(0);" class="js-responsive-menu-link responsive-menu-link"><i class="icon fa-bars fa-fw" aria-hidden="true"></i></a><div class="dropdown"><div class="pointer"><div class="pointer-inner"></div></div><ul class="dropdown-contents" /></div></li>',
|
||||
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'),
|
||||
|
|
Loading…
Add table
Reference in a new issue