]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/static/js/audioPlayer.js
player: mark sound as stopped when removed from playlist
[panikweb.git] / panikweb_templates / static / js / audioPlayer.js
index 2f1bb17769c432a2f8652d84a4e29414bfc9334b..3f039c33a93dfd4e3a835e290039d3cd130b10c2 100644 (file)
                        var controls = $('<span>',{'class':'soundControls controls'});
                        var link = $('<a>',{href:sound.url,'class':'button icon-external-link'});
                        var remove = $('<button>',{title:"Remove from list",'class':'icon-remove',click:function(){
+                               audio.trigger('stop');
                                container.remove();
                                thePlaylist._update();
                        }});