From 22a12dd1a968e73f2778c2654fe3ade3b5c86705 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 29 Apr 2013 18:02:50 -0400 Subject: [PATCH] IM-629 -show only single show at a time --- airtime_mvc/public/js/airtime/schedule/schedule.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/schedule/schedule.js b/airtime_mvc/public/js/airtime/schedule/schedule.js index ac5e2dcc1..b474d30de 100644 --- a/airtime_mvc/public/js/airtime/schedule/schedule.js +++ b/airtime_mvc/public/js/airtime/schedule/schedule.js @@ -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); }); };