From bc569462ee50f6abf62ac726c250337ee2190c5e Mon Sep 17 00:00:00 2001 From: denise Date: Tue, 3 Jul 2012 11:48:57 -0400 Subject: [PATCH] CC-4057: Calendar -> Add/Remove contents: Lost cursor after add contents to a show -fixed --- airtime_mvc/public/js/airtime/showbuilder/builder.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index c5fea6993..e3b8049b3 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -684,9 +684,16 @@ var AIRTIME = (function(AIRTIME){ * and that track is deleted, the cursor position becomes * unavailble. We have to check the position is available * before re-highlighting it. - */ + */ if ($tr.find(".sb-checkbox").children().hasClass("innerWrapper")) { mod.selectCursor($tr); + + /* If the selected cursor is the header or footer row + * we need to explicitly select it because those rows do not have + * innerWrapper class + */ + } else if ($tr.hasClass("sb-header") || $tr.hasClass("sb-footer")) { + mod.selectCursor($tr); } }