CC-1665: Scheduled stream rebroadcasting and recording

-make sure webstream length is properly updated in browser view after editing
This commit is contained in:
Martin Konecny 2012-08-31 13:01:22 -04:00
parent 1aa73c7347
commit cad0a8fbd7
2 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,7 @@ class WebstreamController extends Zend_Controller_Action
$this->view->statusMessage = "<div class='success'>Webstream saved.</div>";
$this->view->streamId = $streamId;
$this->view->length = $di->format("%Hh %Im");
} else {
throw new Exception("isValid returned false");
}

View File

@ -602,6 +602,10 @@ var AIRTIME = (function(AIRTIME){
var $ws_id = $("#ws_delete");
$ws_id.show();
var length = $("#side_playlist #ws_length");
length.text(json.length);
//redraw the library to show the new webstream
redrawLib();
}