summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-02-14 16:06:45 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-02-14 16:06:45 -0500
commit282216e3d8dbd3f8f80308399d6d6b8b9aff26e7 (patch)
treeaa0580589f57fde48a142a3ad473704f312ac27e
parentf5ccc58a9ad9b2e5c65806bc2c52217e8e3fff68 (diff)
downloadhtml5ks-282216e3d8dbd3f8f80308399d6d6b8b9aff26e7.tar.xz
html5ks-282216e3d8dbd3f8f80308399d6d6b8b9aff26e7.zip
fix extra spin
-rw-r--r--www/js/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/api.js b/www/js/api.js
index 0dd7951..609ea4d 100644
--- a/www/js/api.js
+++ b/www/js/api.js
@@ -264,7 +264,6 @@ window.html5ks.api = {
var lookup = document.getElementById(name),
el = lookup || document.createElement("img");
if (!location && !lookup) location = "center";
- html5ks.spin(1);
el.onload = function () {
if (location) {
// calculate position
@@ -326,6 +325,7 @@ window.html5ks.api = {
}
el.id = name;
el.src = "dump/" + src;
+ html5ks.spin(1);
// prevent FOUIPC (flash of incorrectly placed content)
if (!lookup) {
el.style.display = "none";