fixes #1375: The preview image on the upload page is sometimes displayed at full size

This commit is contained in:
r888888888
2016-02-17 16:47:14 -08:00
parent e9c33c311f
commit 403b918dab

View File

@@ -128,10 +128,10 @@
$("#scale").html("Scaled " + parseInt(100 * ratio) + "% (original: " + origin_width + "x" + origin_height + ")");
}
});
} else if (!this.retried) {
this.retried = true;
window.setTimeout(Danbooru.Upload.initialize_image, 200);
}
} else if (!this.tries || this.tries < 10) {
this.tries = (this.tries || 0) + 1;
window.setTimeout(Danbooru.Upload.initialize_image, 200);
}
}
})();