mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 23:36:01 +01:00
Tab buttons appear on pages that have no tabs (#23751).
Patch by Edouard Cunibil. git-svn-id: http://svn.redmine.org/redmine/trunk@15853 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -385,7 +385,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);
|
||||
|
||||
Reference in New Issue
Block a user