From b4b0c0aa8916dadae9125b292d99d005411cfadf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 1 Oct 2016 08:57:31 +0000 Subject: [PATCH] Merged r15853 (#23751). git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15854 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index eedeae08b..087d3de59 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -380,7 +380,7 @@ function displayTabsButtons() { } }); var bw = $(el).parents('div.tabs-buttons').outerWidth(true); - if ((tabsWidth < el.width() - bw) && (lis.first().is(':visible'))) { + if ((tabsWidth < el.width() - bw) && (lis.length === 0 || lis.first().is(':visible'))) { el.find('div.tabs-buttons').hide(); } else { el.find('div.tabs-buttons').show().children('button.tab-left').toggleClass('disabled', numHidden == 0); -- 2.39.5