From 63bc3d4f89a688681f83a49b1eb8f4d320f8ac03 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 26 Sep 2015 09:14:07 +0000 Subject: [PATCH] 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 --- public/javascripts/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 55883fc88..5ff306e6d 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -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; -- 2.39.5