]> git.scottworley.com Git - picsort/commitdiff
This became racy
authorScott Worley <scottworley@scottworley.com>
Sat, 13 Sep 2014 05:19:16 +0000 (22:19 -0700)
committerScott Worley <scottworley@scottworley.com>
Sat, 13 Sep 2014 05:19:16 +0000 (22:19 -0700)
TODO: Actually fix the problem rather than just increasing the sleep time.

picsorter.js

index b8b1804bac0099630ca7ad43330b1d9440a1eaba..31091fa8de234677a3165d7c4d085bd1bd4508b1 100644 (file)
@@ -52,7 +52,7 @@ function setpic() {
 
 function say(message) {
   $("#message").text(message).removeClass("fade");
-  setTimeout(function() { $("#message").addClass("fade"); }, 1);
+  setTimeout(function() { $("#message").addClass("fade"); }, 100);
 }
 function announce() {
   say(input_index + " " + (picinfo[files[input_index]].name || ""));