From: Jean-Philippe Lang Date: Sat, 26 Sep 2015 09:14:07 +0000 (+0000) Subject: Fix for multiple tabs on the same page (#20271). X-Git-Tag: 3.2.0~223 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63bc3d4f89a688681f83a49b1eb8f4d320f8ac03;p=redmine.git 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 --- 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;