summaryrefslogtreecommitdiff
path: root/js/render.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/render.js')
-rw-r--r--js/render.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/render.js b/js/render.js
index 6ad7560..cfc2d81 100644
--- a/js/render.js
+++ b/js/render.js
@@ -12,13 +12,17 @@ function choose (){
}
function load(){
- var imageURL = $("#url").val()
+ var newImageURL = $("#url").val()
loading = true
- loadImage(imageURL, ready)
+ if (newImageURL != imageURL) {
+ loadImage(newImageURL, ready)
+ status("loading")
+ }
}
function ready(){
loading = false
+ status("")
if (window.gif) {
frame = gif.frames[0]
actual_w = w = cc.canvas.width = frame.ctx.canvas.width