Refactor tabs functionality
This commit is contained in:
parent
cf1de5fb66
commit
4238d5a201
7 changed files with 230 additions and 180 deletions
|
@ -141,7 +141,7 @@ AIRTIME = (function(AIRTIME) {
|
|||
dashboardLink = $(".media_type_selector:first"),
|
||||
t;
|
||||
|
||||
if (selected.parent().data("selection-id") == AIRTIME.library.MediaTypeEnum.PODCAST) {
|
||||
if (selected.parent().data("selection-id") == AIRTIME.library.MediaTypeIntegerEnum.PODCAST) {
|
||||
$("#library_display_wrapper").hide();
|
||||
$("#podcast_table_wrapper").show();
|
||||
t = AIRTIME.library.podcastDataTable;
|
||||
|
@ -187,12 +187,6 @@ AIRTIME = (function(AIRTIME) {
|
|||
$builder = $("#show_builder");
|
||||
$fs = $builder.find('fieldset');
|
||||
|
||||
$("#schedule-tab").on("click", function() {
|
||||
if (!$(this).hasClass('active')) {
|
||||
AIRTIME.tabs.switchTab($("#show_builder .outer-datatable-wrapper"), $(this));
|
||||
}
|
||||
});
|
||||
|
||||
//Highlight the media type selector we're currently on.
|
||||
highlightMediaTypeSelector();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue