updates the playlists that can be chosen for the show.
This commit is contained in:
parent
0ffa232b6d
commit
a8f24952bd
3 changed files with 14 additions and 0 deletions
|
@ -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');
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
if(count($this->playlists) > 0) {
|
||||
echo $this->partialLoop('schedule/find-playlists-partial.phtml', $this->playlists);
|
||||
}
|
||||
?>
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue