diff options
| author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-09-15 12:03:23 +0300 |
|---|---|---|
| committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-10-17 21:11:38 +0300 |
| commit | 7e683cb14db915dc94b63d76a82934987357febe (patch) | |
| tree | d074cfd16c277cc5ce7e136b57c2a143d2c6bd73 /phpBB/styles | |
| parent | 9b4001a78623a3b9e05bd40a306654877ff76544 (diff) | |
| download | forums-7e683cb14db915dc94b63d76a82934987357febe.tar forums-7e683cb14db915dc94b63d76a82934987357febe.tar.gz forums-7e683cb14db915dc94b63d76a82934987357febe.tar.bz2 forums-7e683cb14db915dc94b63d76a82934987357febe.tar.xz forums-7e683cb14db915dc94b63d76a82934987357febe.zip | |
[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
Diffstat (limited to 'phpBB/styles')
| -rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 52ee6c0ad2..29e02af034 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -535,7 +535,18 @@ function insert_single_user(formId, user) var $this = $(this), $body = $('body'), 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'), lastWidth = false, responsive = false, |
