CC-1665: Scheduled stream rebroadcasting and recording
-clicking save now show's webstream save was successful
This commit is contained in:
parent
e6a3877c1e
commit
b9bb87f69d
|
@ -34,7 +34,8 @@ class WebstreamController extends Zend_Controller_Action
|
|||
$request = $this->getRequest();
|
||||
|
||||
Application_Model_Webstream::save($request);
|
||||
|
||||
$this->view->statusMessage = "<div class='success'>Webstream saved.</div>";
|
||||
|
||||
$this->view->x = "hi";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<?php if (isset($this->ws)) : ?>
|
||||
<input id="ws_id" type="hidden" value="<?php echo $this->ws->getId(); ?>"></input>
|
||||
<input id="pl_lastMod" type="hidden" value="<?php echo $this->ws->getLastModified('U'); ?>"></input>
|
||||
<div class="status" style="display:none;"></div>
|
||||
<div class="playlist_title">
|
||||
<h3 id="ws_name">
|
||||
<a id="playlist_name_display" contenteditable="true"><?php echo $this->ws->getName(); ?></a>
|
||||
|
@ -30,7 +31,6 @@
|
|||
<input type="text" value="00h 20m"/>
|
||||
</dd>
|
||||
<dd id="submit-element" class="buttons">
|
||||
<input class="ui-button ui-state-default" type="submit" value="Cancel" id="webstream_cancel" name="cancel">
|
||||
<input class="ui-button ui-state-default" type="submit" value="Save" id="webstream_save" name="submit">
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue