]> git.0d.be Git - panikweb-esperanzah.git/blobdiff - panikweb_esperanzah/static/js/specifics.js
rename DirectStreamPanik to LiveStream and fix Controler spelling
[panikweb-esperanzah.git] / panikweb_esperanzah / static / js / specifics.js
index 4041542850f0d394aee1cf4adf026490042e3f4b..5d61acb9615df7c4ca19be53e1fa9c82cc567d8a 100644 (file)
@@ -236,14 +236,14 @@ $(function() {
                if (e.type === 'keypress' && !(e.key === ' ' || e.key === 'Enter'))
                        return;
                e.preventDefault();
-               var stream = $('#DirectStreamPanik').get(0);
+               var stream = $('#LiveStream').get(0);
                if (stream.paused == false){
                        if ($(this).find('.player-stop')) {
-                               $('#DirectStreamPanik').trigger('pause');  // icon change
+                               $('#LiveStream').trigger('pause');  // icon change
                                stream.pause();
-                               var par = $('#DirectStreamPanik').parent()
-                               var dup = $('#DirectStreamPanik').clone();
-                               $('#DirectStreamPanik').remove();
+                               var par = $('#LiveStream').parent()
+                               var dup = $('#LiveStream').clone();
+                               $('#LiveStream').remove();
                                $(dup).appendTo($(par));
                                add_stream_handlers();
                        } else {
@@ -259,11 +259,11 @@ $(function() {
        });
 
        function add_stream_handlers() {
-         $('#DirectStreamPanik').on('play',function(){
-               $('audio:not(#DirectStreamPanik)').each(function(){this.pause();});
+         $('#LiveStream').on('play',function(){
+               $('audio:not(#LiveStream)').each(function(){this.pause();});
                $('#streamSymbol').removeClass('player-start').addClass('player-stop');
          }).on('pause',function(){
-               //$('audio:not(#DirectStreamPanik)').each(function(){this.pause();});
+               //$('audio:not(#LiveStream)').each(function(){this.pause();});
                $('#streamSymbol').addClass('player-start').removeClass('player-pause').removeClass('player-stop');
          });
        }
@@ -286,7 +286,7 @@ $(function() {
                        self.controlButtons['playpause'].addClass('resymbol');
                },
                onPlay:function(self){
-                       $('#DirectStreamPanik')[0].pause();
+                       $('#LiveStream')[0].pause();
                },
                onAdd:function(self){
                        //self.isLastAdd[0].scrollIntoView();