added button to generate smartblock and playlist for podcast
This commit is contained in:
parent
cb62cff277
commit
6cd5550721
5 changed files with 52 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue