]> git.0d.be Git - panikweb.git/commitdiff
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 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(){
                        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();
                        }});
                                container.remove();
                                thePlaylist._update();
                        }});