* Move tab functionality to a separate module

* Fix broken library placeholders
* Restrict tab width and add text panning to tab name
* General bugfixing and cleanup of tab functionality
This commit is contained in:
Duncan Sommerville 2015-09-15 18:53:25 -04:00
parent 0d80f857d3
commit 8dcea06077
9 changed files with 272 additions and 225 deletions

View file

@ -108,21 +108,6 @@ var AIRTIME = (function(AIRTIME){
}
};
mod.switchTab = function(tab, el) {
$(".active-tab").hide().removeClass("active-tab");
tab.addClass("active-tab").show();
$(".nav.nav-tabs .active").removeClass("active");
el.addClass("active");
if (tab.hasClass("pl-content")) {
AIRTIME.playlist.setAsActive();
}
AIRTIME.playlist.onResize();
AIRTIME.library.fnRedraw();
};
mod.checkSelectButton = function() {
var $selectable = $sbTable.find("tr");