CC-3174 : showbuilder
unsetting playlist id in the session properly.
This commit is contained in:
parent
529f3fa52f
commit
668e214371
airtime_mvc
|
@ -36,7 +36,12 @@ class PlaylistController extends Zend_Controller_Action
|
|||
|
||||
private function changePlaylist($pl_id)
|
||||
{
|
||||
$this->pl_sess->id = intval($pl_id);
|
||||
if (is_null($pl_id)) {
|
||||
unset($this->pl_sess->id);
|
||||
}
|
||||
else {
|
||||
$this->pl_sess->id = intval($pl_id);
|
||||
}
|
||||
}
|
||||
|
||||
private function createUpdateResponse($pl)
|
||||
|
@ -143,11 +148,11 @@ class PlaylistController extends Zend_Controller_Action
|
|||
$this->changePlaylist(null);
|
||||
}
|
||||
else {
|
||||
$pl = $this->getPlaylist();
|
||||
Logging::log("Not deleting currently active playlist");
|
||||
}
|
||||
|
||||
Application_Model_Playlist::DeletePlaylists($ids);
|
||||
$pl = $this->getPlaylist();
|
||||
}
|
||||
catch(PlaylistNotFoundException $e) {
|
||||
Logging::log("Playlist not found");
|
||||
|
|
|
@ -593,8 +593,9 @@ var AIRTIME = (function(AIRTIME){
|
|||
$(playlist).delegate("#spl_new",
|
||||
{"click": AIRTIME.playlist.fnNew});
|
||||
|
||||
$(playlist).delegate("#spl_delete",
|
||||
{"click": AIRTIME.playlist.fnDelete});
|
||||
$(playlist).delegate("#spl_delete", {"click": function(ev){
|
||||
AIRTIME.playlist.fnDelete();
|
||||
}});
|
||||
|
||||
setPlaylistEntryEvents(playlist);
|
||||
setCueEvents(playlist);
|
||||
|
|
Loading…
Reference in New Issue