aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-10-22 23:34:20 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-24 18:36:17 +0300
commit11157e4f033d9fe1e241a4ff13e2ad8516024d5e (patch)
tree1d2505de41315d2bfc609b51620e5bccdd7836a7 /phpBB/styles/prosilver
parent02cf80da9db56954a37441f5039102178671e159 (diff)
downloadforums-11157e4f033d9fe1e241a4ff13e2ad8516024d5e.tar
forums-11157e4f033d9fe1e241a4ff13e2ad8516024d5e.tar.gz
forums-11157e4f033d9fe1e241a4ff13e2ad8516024d5e.tar.bz2
forums-11157e4f033d9fe1e241a4ff13e2ad8516024d5e.tar.xz
forums-11157e4f033d9fe1e241a4ff13e2ad8516024d5e.zip
[ticket/11956] Fix responsive linkslist bug
PHPBB3-11956
Diffstat (limited to 'phpBB/styles/prosilver')
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index 2e0cf7bfea..9c1d860e98 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -728,7 +728,8 @@ function parse_document(container)
$body = $('body'),
filterSkip = '.breadcrumbs, .skip-responsive',
filterLast = '.pagination, .icon-notifications, .icon-pm, .icon-logout, .icon-login, .mark-read, .edit-icon, .quote-icon',
- links = $this.children().not(filterSkip),
+ allLinks = $this.children(),
+ links = allLinks.not(filterSkip),
html = '<li class="responsive-menu" style="display:none;"><a href="javascript:void(0);" class="responsive-menu-link">&nbsp;</a><div class="popup-pointer" style="display: none;"><div class="popup-pointer-inner" /></div><ul class="responsive-popup" style="display:none;" /></li>',
filterLastList = links.filter(filterLast);
@@ -771,8 +772,9 @@ function parse_document(container)
// Find tallest element
var maxHeight = 0;
- links.each(function() {
+ allLinks.each(function() {
if (!$(this).height()) return;
+ $(this).attr('data-height', $(this).outerHeight(true));
maxHeight = Math.max(maxHeight, $(this).outerHeight(true));
});
@@ -792,7 +794,7 @@ function parse_document(container)
$this.addClass('compact');
var compactMaxHeight = 0;
- links.each(function() {
+ allLinks.each(function() {
if (!$(this).height()) return;
compactMaxHeight = Math.max(compactMaxHeight, $(this).outerHeight(true));
});