From 57781f819e9708974d84b889e5b44e9b79f2fdbd Mon Sep 17 00:00:00 2001 From: james Date: Thu, 8 Sep 2011 15:09:12 -0400 Subject: [PATCH] CC-2622: stop current play song, when item is removed from thie list - fixed --- airtime_mvc/public/js/airtime/library/spl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index 4f22f29e9..4187a36a0 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -303,6 +303,9 @@ function addSPLItem(event, ui){ function deleteSPLItem(event){ event.stopPropagation(); + + // stop any preview playing + $('#jquery_jplayer_1').jPlayer('stop'); var url, pos; @@ -399,7 +402,7 @@ function newSPL() { function deleteSPL() { var url; - + // stop any preview playing $('#jquery_jplayer_1').jPlayer('stop');