Fix bug where switching from #podcast to other media view would not work as intended

This commit is contained in:
Duncan Sommerville 2015-09-18 15:37:41 -04:00
parent 5b32553820
commit 6900af8d47

View file

@ -144,16 +144,11 @@ AIRTIME = (function(AIRTIME) {
if (selected.parent().data("selection-id") == AIRTIME.library.MediaTypeEnum.PODCAST) {
$("#library_display_wrapper").hide();
$("#podcast_table_wrapper").show();
t = AIRTIME.library.podcastDataTable;
} else {
if (typeof oTable === 'undefined') {
oTable = AIRTIME.library.libraryDataTable;
}
$("#library_display_wrapper").show();
$("#podcast_table_wrapper").hide();
t = oTable;
t = AIRTIME.library.libraryDataTable;
}
dashboardLink.find("a").attr("href", selected.attr("href"));