summaryrefslogtreecommitdiffstats
path: root/public/javascripts/application.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r--public/javascripts/application.js3
1 files changed, 2 insertions, 1 deletions
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;