fix-tabs.diff

Edouard Cunibil, 2016-09-02 13:29

Download (934 Bytes)

View differences:

public/javascripts/application.js
380 380
      }
381 381
    });
382 382
    var bw = $(el).parents('div.tabs-buttons').outerWidth(true);
383
    if ((tabsWidth < el.width() - bw) && (lis.first().is(':visible'))) {
383
    if ((tabsWidth < el.width() - bw) && (lis.length === 0 || lis.first().is(':visible'))) {
384 384
      el.find('div.tabs-buttons').hide();
385 385
    } else {
386 386
      el.find('div.tabs-buttons').show().children('button.tab-left').toggleClass('disabled', numHidden == 0);
387
-