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');