CC-2447:Preview keeps playing if you create a new playlist

- fixed
- preview stops on clicking on any of new, delete, done editing button
This commit is contained in:
james 2011-07-04 14:49:17 -04:00
parent cb72db4a31
commit dcddec9536
2 changed files with 10 additions and 6 deletions

View file

@ -337,6 +337,9 @@ function noOpenPL(json) {
function closeSPL() {
var url;
// stop playing any preview
$('#jquery_jplayer_1').jPlayer('stop');
url = '/Playlist/close/format/json';
@ -386,6 +389,9 @@ function createPlaylistMetaForm(json) {
function newSPL() {
var url;
// stop any preview playing
$('#jquery_jplayer_1').jPlayer('stop');
url = '/Playlist/new/format/json';
$.post(url, createPlaylistMetaForm);
@ -394,6 +400,9 @@ function newSPL() {
function deleteSPL() {
var url;
// stop any preview playing
$('#jquery_jplayer_1').jPlayer('stop');
url = '/Playlist/delete-active/format/json';
$.post(url, function(){