diff --git a/airtime_mvc/application/controllers/WebstreamController.php b/airtime_mvc/application/controllers/WebstreamController.php index 9ffe6f07a..1a9f6e67c 100644 --- a/airtime_mvc/application/controllers/WebstreamController.php +++ b/airtime_mvc/application/controllers/WebstreamController.php @@ -150,6 +150,7 @@ class WebstreamController extends Zend_Controller_Action $this->view->statusMessage = "
Webstream saved.
"; $this->view->streamId = $streamId; + $this->view->length = $di->format("%Hh %Im"); } else { throw new Exception("isValid returned false"); } diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index 1d8313fe2..46a0945b7 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -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(); }