-show only single show at a time
This commit is contained in:
Martin Konecny 2013-04-29 18:02:50 -04:00
parent 43e825fe49
commit 22a12dd1a9
1 changed files with 4 additions and 2 deletions

View File

@ -137,7 +137,7 @@ function findViewportDimensions() {
};
}
function buildScheduleDialog (json) {
function buildScheduleDialog (json, instance_id) {
var dialog = $(json.dialog),
viewport = findViewportDimensions(),
height = Math.floor(viewport.height * 0.96),
@ -179,6 +179,8 @@ function buildScheduleDialog (json) {
//set the start end times so the builder datatables knows its time range.
fnServer.start = json.start;
fnServer.end = json.end;
fnServer.ops = {};
fnServer.ops.showFilter = instance_id;
AIRTIME.library.libraryInit();
AIRTIME.showbuilder.builderDataTable();
@ -352,7 +354,7 @@ $(document).ready(function() {
callback = function() {
$.post(oItems.schedule.url, {format: "json", id: data.id}, function(json){
buildScheduleDialog(json);
buildScheduleDialog(json, data.id);
});
};