CC-1665: Scheduled stream rebroadcasting and recording

-clicking save now show's webstream save was successful
This commit is contained in:
Martin Konecny 2012-08-01 15:37:50 -04:00
parent e6a3877c1e
commit b9bb87f69d
4 changed files with 15 additions and 29 deletions

View file

@ -521,13 +521,7 @@ var AIRTIME = (function(AIRTIME){
$fs.addClass("closed");
}
});
$pl.on("click", "#webstream_cancel", function(){
$("#side_playlist")
.empty()
.append("WHAT SHOULD I PUT HERE??!?!! :)");
})
$pl.on("click", "#webstream_save", function(){
//get all fields and POST to server
//description
@ -541,22 +535,13 @@ var AIRTIME = (function(AIRTIME){
var url = 'Webstream/save';
$.post(url,
{format: "json", description: description, url:streamurl, length: length, name: name},
function(json){
$("#side_playlist")
.empty()
.append("WHAT SHOULD I PUT HERE??!?!! :)");
/*
if (json.error !== undefined){
playlistError(json);
} else {
setModified(json.modified);
textarea.val(json.description);
$pl.find("#fieldset-metadate_change").addClass("closed");
redrawLib();
} */
});
{format: "json", description: description, url:streamurl, length: length, name: name},
function(json){
var $status = $("#side_playlist .status");
$status.html(json.statusMessage);
$status.show();
setTimeout(function(){$status.fadeOut("slow", function(){$status.empty()})}, 5000);
});
}

View file

@ -485,14 +485,14 @@ function callback(data, type) {
dt.fnStandingRedraw();
$('div[class="playlist_title"]').find("h4").html(json.blockLength);
}
setTimeout('removeSuccessMsg()', 5000);
setTimeout(removeSuccessMsg, 5000);
}
}
function removeSuccessMsg() {
var form = $('#smart-playlist-form');
form.find('.success').text('');
form.find('.success').hide();
var $status = $('#smart-playlist-form').find('.success');
$status.fadeOut("slow", function(){$status.empty()});
}
function appendAddButton() {