player: mark sound as stopped when removed from playlist
authorFrédéric Péters <fpeters@0d.be>
Wed, 22 Apr 2020 18:58:32 +0000 (20:58 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 22 Apr 2020 18:58:55 +0000 (20:58 +0200)
panikweb_templates/static/js/audioPlayer.js

index 2f1bb17..3f039c3 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();
                        }});