updates the playlists that can be chosen for the show.

This commit is contained in:
naomiaro 2011-01-13 18:01:15 -05:00
parent 0ffa232b6d
commit a8f24952bd
3 changed files with 14 additions and 0 deletions

View file

@ -162,6 +162,7 @@ class ScheduleController extends Zend_Controller_Action
$this->view->playlists = $show->searchPlaylistsForShow($day);
$this->view->showContent = $show->getShowContent($start);
$this->view->choice = $this->view->render('schedule/find-playlists.phtml');
$this->view->chosen = $this->view->render('schedule/scheduled-content.phtml');
$this->view->dialog = $this->view->render('schedule/schedule-show.phtml');

View file

@ -0,0 +1,5 @@
<?php
if(count($this->playlists) > 0) {
echo $this->partialLoop('schedule/find-playlists-partial.phtml', $this->playlists);
}
?>

View file

@ -200,6 +200,14 @@ function makeScheduleDialog(dialog, show) {
function(json){
var x;
$("#schedule_playlist_choice")
.empty()
.append(json.choice)
.find('li')
.draggable({
helper: 'clone'
});
$("#schedule_playlist_chosen")
.empty()
.append(json.chosen);