diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 8e06997d8d..aca0146792 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -465,7 +465,7 @@ function insert_single_user(formId, user) }); // Responsive breadcrumbs - $('.breadcrumbs').each(function() { + $('.breadcrumbs:not(.skip-responsive)').each(function() { var $this = $(this), $body = $('body'), links = $this.find('.crumb'), @@ -504,17 +504,23 @@ function insert_single_user(formId, user) if (wrapped) { $this.removeClass('wrapped').find('.crumb.wrapped').removeClass('wrapped ' + classes.join(' ')); wrapped = false; - if ($this.height() <= maxHeight) return; + if ($this.height() <= maxHeight) { + return; + } } wrapped = true; $this.addClass('wrapped'); - if ($this.height() <= maxHeight) return; + if ($this.height() <= maxHeight) { + return; + } for (i = 0; i < classesLength; i ++) { for (j = length; j >= 0; j --) { links.eq(j).addClass('wrapped ' + classes[i]); - if ($this.height() <= maxHeight) return; + if ($this.height() <= maxHeight) { + return; + } } } } @@ -523,5 +529,71 @@ function insert_single_user(formId, user) check(); $(window).resize(check); }); + + // Responsive link lists + $('.linklist:not(.navlinks, .skip-responsive)').each(function() { + var $this = $(this), + $body = $('body'), + links = $this.children().not('.skip-responsive'), + toggle = $this.append('