Commit 5f9f12c6093082178814ddde026a76d0fe1c1a8c

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.
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/js/img_swtr.js

325 //console.log('image loaded', self);325 //console.log('image loaded', self);
326 swtr.appView.$overlay.hide();326 swtr.appView.$overlay.hide();
327 self.showImgAnnoControls();327 self.showImgAnnoControls();
328 self.toggleAnnoAreas();
329 // reset the collection328 // reset the collection
330 swtr.sweets.reset();329 swtr.sweets.reset();
331 anno.makeAnnotatable(swtr.imgAnnoView.img);330 anno.makeAnnotatable(swtr.imgAnnoView.img);
360 swtr.sweets.add(data);360 swtr.sweets.add(data);
361 //self.renderWith();361 //self.renderWith();
362 swtr.appView.$overlay.hide();362 swtr.appView.$overlay.hide();
363 self.toggleAnnoAreas();
363 self.helpview.step(2);364 self.helpview.step(2);
364 }365 }
365 },366 },