Patch #20271 ยป 0001-Fix-display-tab-function-for-more-than-one-set-of-ta.patch
| public/javascripts/application.js | ||
|---|---|---|
| 352 | 352 | |
| 353 | 353 |
function displayTabsButtons() {
|
| 354 | 354 |
var lis; |
| 355 |
var tabsWidth = 0;
|
|
| 355 |
var tabsWidth; |
|
| 356 | 356 |
var el; |
| 357 | 357 |
$('div.tabs').each(function() {
|
| 358 | 358 |
el = $(this); |
| 359 | 359 |
lis = el.find('ul').children();
|
| 360 |
tabsWidth = 0; |
|
| 360 | 361 |
lis.each(function(){
|
| 361 | 362 |
if ($(this).is(':visible')) {
|
| 362 | 363 |
tabsWidth += $(this).width() + 6; |