CC-1665: Scheduled stream rebroadcasting and recording

-Fixed delete button on right side of library screen not working
This commit is contained in:
Martin Konecny 2012-08-20 18:35:10 -04:00
parent d517bf6e19
commit 3230f14231
3 changed files with 36 additions and 3 deletions

View file

@ -8,6 +8,7 @@ class WebstreamController extends Zend_Controller_Action
$ajaxContext->addActionContext('new', 'json')
->addActionContext('save', 'json')
->addActionContext('edit', 'json')
->addActionContext('delete', 'json')
->initContext();
//TODO
//$this->pl_sess = new Zend_Session_Namespace(UI_PLAYLIST_SESSNAME);
@ -46,6 +47,15 @@ class WebstreamController extends Zend_Controller_Action
$this->view->html = $this->view->render('webstream/webstream.phtml');
}
public function deleteAction()
{
$request = $this->getRequest();
$id = $request->getParam("ids");
$webstream = CcWebstreamQuery::create()->findPK($id)->delete();
}
public function saveAction()
{
$request = $this->getRequest();