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:
parent
cb72db4a31
commit
dcddec9536
2 changed files with 10 additions and 6 deletions
|
@ -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(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue