Commit 5784aee499b4a7a534aba886895351be12a9af5a

Fix: rendering problems betwn swts using text field and swts not using text field
  • 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();
328 // reset the collection329 // reset the collection
329 swtr.sweets.reset();330 swtr.sweets.reset();
330 anno.makeAnnotatable(swtr.imgAnnoView.img);331 anno.makeAnnotatable(swtr.imgAnnoView.img);

swtr/static/js/lib/custom-fields-plugin.js

11 // HACK! to get around disabling annotorious' default text box in the11 // HACK! to get around disabling annotorious' default text box in the
12 // popup..12 // popup..
13 if(!annotation.text) {13 if(!annotation.text) {
14 //console.log('no anno text:', annotation);
14 $('.annotorious-popup-text').hide();15 $('.annotorious-popup-text').hide();
16 }
17 else {
18 //console.log('anno text is there', annotation);
19 $('.annotorious-popup-text').show();
15 }20 }
16 // this is the title21 // this is the title
17 return (annotation.title) ? '<h4>' + annotation.title + '</h4>' : '';22 return (annotation.title) ? '<h4>' + annotation.title + '</h4>' : '';