From: Boris Bobrov Date: Tue, 23 May 2017 08:28:08 +0000 (+0300) Subject: Change all tabs to spaces in js file X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=683c9cc66c6ac8a8d9765f9b434cad2d624a5c6b;p=mediagoblin.git Change all tabs to spaces in js file It's bad to mix them --- diff --git a/mediagoblin/static/js/audio.js b/mediagoblin/static/js/audio.js index 36b4eab2..59a8c801 100644 --- a/mediagoblin/static/js/audio.js +++ b/mediagoblin/static/js/audio.js @@ -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; } };