mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11552] Insert responsive menu toggle before li.rightside
Insert responsive menu toggle before li.rightside to prevent li.rightside:last-child css rule from not working PHPBB3-11552
This commit is contained in:
parent
9b4001a786
commit
7e683cb14d
1 changed files with 12 additions and 1 deletions
|
@ -535,7 +535,18 @@ function insert_single_user(formId, user)
|
||||||
var $this = $(this),
|
var $this = $(this),
|
||||||
$body = $('body'),
|
$body = $('body'),
|
||||||
links = $this.children().not('.skip-responsive'),
|
links = $this.children().not('.skip-responsive'),
|
||||||
toggle = $this.append('<li class="responsive-menu" style="display:none;"><a href="javascript:void(0);" class="responsive-menu-link"> </a><ul class="responsive-popup" style="display:none;" /></li>').children('.responsive-menu'),
|
html = '<li class="responsive-menu" style="display:none;"><a href="javascript:void(0);" class="responsive-menu-link"> </a><ul class="responsive-popup" style="display:none;" /></li>';
|
||||||
|
|
||||||
|
if (links.is('.rightside'))
|
||||||
|
{
|
||||||
|
links.filter('.rightside:first').before(html);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this.append(html);
|
||||||
|
}
|
||||||
|
|
||||||
|
var toggle = $this.children('.responsive-menu'),
|
||||||
menu = toggle.find('.responsive-popup'),
|
menu = toggle.find('.responsive-popup'),
|
||||||
lastWidth = false,
|
lastWidth = false,
|
||||||
responsive = false,
|
responsive = false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue