CC-4044: Timeline -> Cursor keeps highlight even if the song is played

-fixed
This commit is contained in:
denise 2012-06-29 15:49:22 -04:00
parent 6d823d01ab
commit 68420a898f
1 changed files with 9 additions and 1 deletions

View File

@ -679,7 +679,15 @@ var AIRTIME = (function(AIRTIME){
//re-highlight selected cursors before draw took place
for (i = 0; i < cursorIds.length; i++) {
$tr = $table.find("tr[id="+cursorIds[i]+"][si_id="+showInstanceIds[i]+"]");
mod.selectCursor($tr);
/* If the currently playing track's cursor is selected,
* 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 there is only 1 cursor on the page highlight it by default.