added button to generate smartblock and playlist for podcast

This commit is contained in:
Robbt 2018-12-12 22:53:28 -05:00
parent cb62cff277
commit 6cd5550721
5 changed files with 52 additions and 0 deletions

View file

@ -49,6 +49,14 @@ var AIRTIME = (function (AIRTIME) {
});
};
/**
* Generate a smartblock and playlist for this smartblock.
*/
$scope.createSmartblock = function () {
console.log($scope.podcast.id);
$.post(endpoint + "smartblock", {csrf_token: $("#csrf").val(), id: $scope.podcast.id}, callback);
/**
* Close the tab and discard any changes made to the podcast data.
*/
@ -64,6 +72,9 @@ var AIRTIME = (function (AIRTIME) {
return self;
}
/**
* Initialize the controller.
*