From 68420a898fe03eda0c2efdc9943d766a959db132 Mon Sep 17 00:00:00 2001 From: denise Date: Fri, 29 Jun 2012 15:49:22 -0400 Subject: [PATCH 1/2] CC-4044: Timeline -> Cursor keeps highlight even if the song is played -fixed --- airtime_mvc/public/js/airtime/showbuilder/builder.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index 434a34d02..47881e9fd 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -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. From 7ea106e0d36151d201c434377dd0ed1c5c6595a6 Mon Sep 17 00:00:00 2001 From: denise Date: Fri, 29 Jun 2012 16:02:27 -0400 Subject: [PATCH 2/2] CC-4051: Library -> First character gets cut off of file name when downloading a track from a watched folder -fixed --- airtime_mvc/application/controllers/ApiController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 52843c738..a29054ed9 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -134,8 +134,9 @@ class ApiController extends Zend_Controller_Action */ if (!$file_base_name) { $file_base_name = $full_path; - } - $file_base_name = substr($file_base_name, 1); + } else { + $file_base_name = substr($file_base_name, 1); + } // possibly use fileinfo module here in the future. // http://www.php.net/manual/en/book.fileinfo.php $ext = pathinfo($fileID, PATHINFO_EXTENSION);