From 386a37f7f0740562badd46755f8568409510e7db Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Fri, 27 Dec 2013 16:08:02 +0530 Subject: [PATCH] Fix small bug when image loaded for first time When an image was loaded for first time, and no annotations exist, the app would freeze because of 404 error. Fix that. --- swtr/static/js/swtmaker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swtr/static/js/swtmaker.js b/swtr/static/js/swtmaker.js index 0c33df0..51debe9 100644 --- a/swtr/static/js/swtmaker.js +++ b/swtr/static/js/swtmaker.js @@ -232,6 +232,8 @@ if(jqxhr.status === 404) { //annotations don't exist for this image console.log('annotations don\'t exist for this image. Create one!'); } + swtr.appView.$overlay.hide(); + swtr.appView.helpview.step(2); } }); }, -- 1.7.10.4