Fix for multiple tabs on the same page (#20271).

Patch by Felix Gliesche.

git-svn-id: http://svn.redmine.org/redmine/trunk@14624 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-09-26 09:14:07 +00:00
parent 42238a74f4
commit 63bc3d4f89

View File

@@ -352,11 +352,12 @@ function moveTabLeft(el) {
function displayTabsButtons() {
var lis;
var tabsWidth = 0;
var tabsWidth;
var el;
$('div.tabs').each(function() {
el = $(this);
lis = el.find('ul').children();
tabsWidth = 0;
lis.each(function(){
if ($(this).is(':visible')) {
tabsWidth += $(this).width() + 6;