Merge branch 'saas-dev-publishing' of https://github.com/sourcefabric/Airtime into saas-dev-publishing
This commit is contained in:
commit
08afb54f89
|
@ -1379,6 +1379,15 @@ var AIRTIME = (function(AIRTIME) {
|
|||
return this.getSelectedRows().length >= 1;
|
||||
}
|
||||
});
|
||||
|
||||
var openPodcastEpisodeTable = function (podcast) {
|
||||
mod.podcastEpisodeTableWidget.reload(podcast.id);
|
||||
mod.podcastTableWidget.clearSelection();
|
||||
mod.setCurrentTable(mod.DataTableTypeEnum.PODCAST_EPISODES);
|
||||
mod.podcastEpisodeDataTable.closest(".dataTables_wrapper").find(".dataTables_processing")
|
||||
.addClass("block-overlay").css("visibility", "visible");
|
||||
};
|
||||
|
||||
podcastToolbarButtons["ViewEpisodes"] = {
|
||||
title : $.i18n._("View Episodes"),
|
||||
iconClass : "icon-chevron-right",
|
||||
|
@ -1387,9 +1396,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
eventHandlers : {
|
||||
click: function () {
|
||||
var podcast = mod.podcastTableWidget.getSelectedRows()[0];
|
||||
mod.podcastEpisodeTableWidget.reload(podcast.id);
|
||||
mod.podcastTableWidget.clearSelection();
|
||||
mod.setCurrentTable(mod.DataTableTypeEnum.PODCAST_EPISODES);
|
||||
openPodcastEpisodeTable(podcast);
|
||||
}
|
||||
},
|
||||
validateConstraints: function () {
|
||||
|
@ -1429,9 +1436,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
// in the left-hand pane.
|
||||
mod.podcastTableWidget.assignDblClickHandler(function () {
|
||||
var podcast = mod.podcastDataTable.fnGetData(this);
|
||||
mod.podcastEpisodeTableWidget.reload(podcast.id);
|
||||
mod.podcastTableWidget.clearSelection();
|
||||
mod.setCurrentTable(mod.DataTableTypeEnum.PODCAST_EPISODES);
|
||||
openPodcastEpisodeTable(podcast);
|
||||
});
|
||||
|
||||
mod.podcastDataTable = mod.podcastTableWidget.getDatatable();
|
||||
|
|
|
@ -483,6 +483,7 @@ var AIRTIME = (function (AIRTIME) {
|
|||
*/
|
||||
mod.importSelectedEpisodes = function (episodes, dt) {
|
||||
$.each(episodes, function () {
|
||||
// remainingDiskSpace is defined in layout.phtml
|
||||
if (this.enclosure.length > remainingDiskSpace) {
|
||||
alert("You don't have enough disk space to import " + this.title);
|
||||
return false;
|
||||
|
@ -569,6 +570,9 @@ var AIRTIME = (function (AIRTIME) {
|
|||
},
|
||||
fnDrawCallback: function () {
|
||||
AIRTIME.library.drawEmptyPlaceholder(this);
|
||||
// Hide the processing div
|
||||
var dt = this.getDatatable();
|
||||
!dt || dt.closest(".dataTables_wrapper").find(".dataTables_processing").css("visibility", "hidden");
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue