can add multiple playlists to a show, doesn't check length or update playlists based on time left. GUI is bad.

This commit is contained in:
naomiaro 2011-01-12 15:47:44 -05:00
parent 9c23b86c53
commit 1f8ac9719f
5 changed files with 125 additions and 32 deletions

View file

@ -185,19 +185,25 @@ function makeScheduleDialog(dialog, show) {
dialog.find("#schedule_playlist_chosen")
.droppable({
drop: function(event, ui) {
var li, pl_id, url, start_date;
var li, pl_id, url, start_date, end_date;
pl_id = $(ui.helper).attr("id").split("_").pop();
start_date = makeTimeStamp(show.start);
end_date = makeTimeStamp(show.end);
url = '/Schedule/schedule-show/format/json';
/*$.post(url,
{plId: pl_id, start: start_date, showId: show.id},
//$("#schedule_playlist_chosen")
// .append(ui.helper);
$.post(url,
{plId: pl_id, start: start_date, end: end_date, showId: show.id},
function(json){
var x;
}); */
});
}
});
}