diff options
| author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-09-15 18:19:15 +0300 |
|---|---|---|
| committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-10-17 21:13:05 +0300 |
| commit | 9ccccb8baac5649777da9125be2fab494106d725 (patch) | |
| tree | 74f604e59b7b0e05461bf735693ff4198965588f /phpBB/styles | |
| parent | 378b2dfa96fb3295c47a1d7ae0ed985291da5a6c (diff) | |
| download | forums-9ccccb8baac5649777da9125be2fab494106d725.tar forums-9ccccb8baac5649777da9125be2fab494106d725.tar.gz forums-9ccccb8baac5649777da9125be2fab494106d725.tar.bz2 forums-9ccccb8baac5649777da9125be2fab494106d725.tar.xz forums-9ccccb8baac5649777da9125be2fab494106d725.zip | |
[ticket/11552] Fixes for tabs and breadcrumbs
PHPBB3-11552
Diffstat (limited to 'phpBB/styles')
| -rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index b22f33daf3..dfcfa09d76 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -519,7 +519,7 @@ function insert_single_user(formId, user) } for (i = 0; i < classesLength; i ++) { - for (j = length; j > 0; j --) { + for (j = length - 1; j >= 0; j --) { links.eq(j).addClass('wrapped ' + classes[i]); if ($this.height() <= maxHeight) { return; @@ -653,14 +653,16 @@ function insert_single_user(formId, user) total = availableTabs.length, i, tab; - for (i = total; i > 0; i --) { + for (i = total - 1; i >= 0; i --) { tab = availableTabs.eq(i); menu.prepend(tab.clone(true)); tab.hide(); if ($this.height() <= maxHeight) { + menu.find('a').click(function() { check(true); }); return; } } + menu.find('a').click(function() { check(true); }); } toggleLink.click(function() { |
