Fix invalid selector in function displayTabsButtons() (#33392).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19748 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-05-03 23:17:56 +00:00
parent 1b91549ed4
commit c8a58674cf

View File

@@ -467,7 +467,7 @@ function displayTabsButtons() {
numHidden++; numHidden++;
} }
}); });
var bw = $(el).parents('div.tabs-buttons').outerWidth(true); var bw = $(el).find('div.tabs-buttons').outerWidth(true);
if ((tabsWidth < el.width() - bw) && (lis.length === 0 || lis.first().is(':visible'))) { if ((tabsWidth < el.width() - bw) && (lis.length === 0 || lis.first().is(':visible'))) {
el.find('div.tabs-buttons').hide(); el.find('div.tabs-buttons').hide();
} else { } else {