Change all tabs to spaces in js file
authorBoris Bobrov <breton@cynicmansion.ru>
Tue, 23 May 2017 08:28:08 +0000 (11:28 +0300)
committerBoris Bobrov <breton@cynicmansion.ru>
Tue, 23 May 2017 08:28:08 +0000 (11:28 +0300)
It's bad to mix them

mediagoblin/static/js/audio.js

index 36b4eab2adb01e845ef11e34f00bd1432867c60d..59a8c801cad5a5588222f2ec2cb0e2284c6d6d46 100644 (file)
@@ -116,9 +116,9 @@ var audioPlayer = new Object();
         var im = audioPlayer.imageElement;
         var pos = (e.offsetX || e.originalEvent.layerX) / im.width();
 
-       console.log('pos', (e.offsetX || e.originalEvent.layerX) / im.width())
-       console.log('setting current time to',
-                       pos * audioPlayer.audioElement.duration)
+        console.log('pos', (e.offsetX || e.originalEvent.layerX) / im.width())
+        console.log('setting current time to',
+            pos * audioPlayer.audioElement.duration)
 
         audioPlayer.audioElement.currentTime = pos * audioPlayer.audioElement.duration;
         audioPlayer.audioElement.play();
@@ -158,13 +158,13 @@ var audioPlayer = new Object();
                 el = $('.audio-spectrogram .audio-control-play-pause')
                     .removeClass('paused').addClass('playing')
                     .text('▮▮').attr('aria-label', 'Pause');
-               el[0].setAttribute('aria-label', 'Pause')
+                el[0].setAttribute('aria-label', 'Pause')
                 break;
             case audioPlayer.PAUSED:
                 el = $('.audio-spectrogram .audio-control-play-pause')
                     .removeClass('playing').addClass('paused')
                     .text('▶').attr('aria-label', 'Play');
-               el[0].setAttribute('aria-label', 'Play')
+                el[0].setAttribute('aria-label', 'Play')
                 break;
         }
     };