Skip to content

Commit

Permalink
minor bugfix spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wahlforss authored and Eric Wahlforss committed Oct 9, 2009
1 parent f99772c commit 28c8ed1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/app.js
Expand Up @@ -511,8 +511,7 @@ soundManager.onload = function() {
$("#player-container #player .waveform img").attr("src", track.waveform_url);

// show the spinner
$(".waveform img").css("visibility","hidden");
$(".waveform .loading").css("visibility","hidden");
$(".waveform img, .waveform .loading, .waveform .progress").css("visibility","hidden");
$(".waveform .spinner").css("visibility","visible");

sound = soundManager.createSound({
Expand All @@ -523,8 +522,7 @@ soundManager.onload = function() {
}),
whileplaying : throttle(100,function() {
if($(".waveform img").css("visibility") == "hidden") { // show spinner if track has not started to load
$(".waveform img").css("visibility","visible");
$(".waveform .loading").css("visibility","visible");
$(".waveform img, .waveform .loading, .waveform .progress").css("visibility","visible");
$(".waveform .spinner").css("visibility","hidden");
}
progress.css('width',(sound.position/track.duration)*100+"%");
Expand Down

0 comments on commit 28c8ed1

Please sign in to comment.