From 87afea63bf976cbfb358f6aa62e98b5892de27fd Mon Sep 17 00:00:00 2001 From: denise Date: Tue, 3 Jul 2012 18:22:48 -0400 Subject: [PATCH] CC-4065: Timeline -> Cursor will disappear after a track is finished sometimes -fixed --- airtime_mvc/public/js/airtime/showbuilder/builder.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index 055588eeb..b1834ec4f 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -213,6 +213,13 @@ var AIRTIME = (function(AIRTIME){ mod.fnItemCallback = function(json) { checkError(json); + mod.getSelectedCursors(); + oSchedTable.fnDraw(); + + mod.enableUI(); + }; + + mod.getSelectedCursors = function() { cursorIds = []; /* We need to keep record of which show the cursor belongs to @@ -237,9 +244,6 @@ var AIRTIME = (function(AIRTIME){ headerFooter.push("n"); } } - oSchedTable.fnDraw(); - - mod.enableUI(); }; mod.fnAdd = function(aMediaIds, aSchedIds) { @@ -315,6 +319,7 @@ var AIRTIME = (function(AIRTIME){ "success": function(json) { mod.setTimestamp(json.timestamp); mod.setShowInstances(json.instances); + mod.getSelectedCursors(); fnCallback(json); } });