podcast smartblock generation: add success message and conditional hide

This commit is contained in:
ryan 2018-12-15 05:09:19 -06:00
parent 5829996202
commit bde87c7afb
3 changed files with 65 additions and 81 deletions

View file

@ -61,7 +61,16 @@ var AIRTIME = (function (AIRTIME) {
id: $scope.podcast.id,
title: $scope.podcast.title
},
callback
function() {
var successMsg = $('.active-tab .pc-sb-success')
successMsg.text($.i18n._('Smartblock and playlist generated'));
successMsg.show();
setTimeout(function(){
successMsg.hide();
}, 5000);
dt = $('table[id="library_display"]').dataTable();
dt.fnStandingRedraw();
}
);
// save podcast
$scope.savePodcast();