From 9f0741a684d8e4e7687f6a1a19db224275670462 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Mon, 2 Apr 2012 11:07:28 +0200 Subject: [PATCH] CC-3174 : timeline don't highlight empty timeline. --- airtime_mvc/public/js/airtime/showbuilder/builder.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index c4407e06b..7e625f05c 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -413,7 +413,10 @@ var AIRTIME = (function(AIRTIME){ //if there is only 1 cursor on the page highlight it by default. if ($cursorRows.length === 1) { - $cursorRows.addClass("cursor-selected-row"); + $td = $cursorRows.find("td:first"); + if (!$td.hasClass("dataTables_empty")) { + $cursorRows.addClass("cursor-selected-row"); + } } }