From 5f9f12c6093082178814ddde026a76d0fe1c1a8c Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Thu, 25 Sep 2014 16:19:02 +0530 Subject: [PATCH] Fix: Show annotation areas checkbox not working when loading new images - After loading new images, the annotations were not respecting the state of the annotatation areas checkbox. Fix that to be consistent. --- swtr/static/js/img_swtr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swtr/static/js/img_swtr.js b/swtr/static/js/img_swtr.js index c9a89d2..fe426ce 100644 --- a/swtr/static/js/img_swtr.js +++ b/swtr/static/js/img_swtr.js @@ -325,7 +325,6 @@ //console.log('image loaded', self); swtr.appView.$overlay.hide(); self.showImgAnnoControls(); - self.toggleAnnoAreas(); // reset the collection swtr.sweets.reset(); anno.makeAnnotatable(swtr.imgAnnoView.img); @@ -361,6 +360,7 @@ swtr.sweets.add(data); //self.renderWith(); swtr.appView.$overlay.hide(); + self.toggleAnnoAreas(); self.helpview.step(2); } }, -- 1.7.10.4