Revert "SAAS-1061 - implement podcast list view skeleton; small bugfixes"
This reverts commit 0fcf6a8dac
.
This commit is contained in:
parent
0fcf6a8dac
commit
893d60ed44
16 changed files with 439 additions and 512 deletions
|
@ -137,24 +137,8 @@ AIRTIME = (function(AIRTIME) {
|
|||
});
|
||||
|
||||
$(window).on('hashchange', function() {
|
||||
var selected = $("a[href$='"+location.hash+"']"),
|
||||
dashboardLink = $(".media_type_selector:first"),
|
||||
t;
|
||||
|
||||
if (selected.parent().data("selection-id") == AIRTIME.library.MediaTypeEnum.PODCAST) {
|
||||
$("#library_display_wrapper").hide();
|
||||
$("#podcast_table").show();
|
||||
|
||||
t = AIRTIME.library.podcastDataTable;
|
||||
} else {
|
||||
if (typeof oTable === 'undefined') {
|
||||
oTable = AIRTIME.library.libraryDataTable;
|
||||
}
|
||||
|
||||
$("#library_display_wrapper").show();
|
||||
$("#podcast_table").hide();
|
||||
t = oTable;
|
||||
}
|
||||
var selected = $("a[href$='"+location.hash+"']");
|
||||
var dashboardLink = $(".media_type_selector:first");
|
||||
|
||||
dashboardLink.find("a").attr("href", selected.attr("href"));
|
||||
AIRTIME.library.selectNone();
|
||||
|
@ -162,7 +146,7 @@ AIRTIME = (function(AIRTIME) {
|
|||
$(this).removeClass("selected");
|
||||
});
|
||||
selected.parent().addClass("selected");
|
||||
t.fnDraw();
|
||||
oTable.fnDraw();
|
||||
$("#library_filter").text(selected.text());
|
||||
// Highlight the dashboard link
|
||||
dashboardLink.addClass("highlight");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue