]> source.dussan.org Git - redmine.git/commitdiff
Fix for multiple tabs on the same page (#20271).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Sep 2015 09:14:07 +0000 (09:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Sep 2015 09:14:07 +0000 (09:14 +0000)
Patch by Felix Gliesche.

git-svn-id: http://svn.redmine.org/redmine/trunk@14624 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 55883fc8815f0456f2cf19577fd30cabeec05865..5ff306e6d4091e70b2a8a906ccc4ce9998c13b57 100644 (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;