Commit 5784aee499b4a7a534aba886895351be12a9af5a
- Diff rendering mode:
- inline
- side by side
swtr/static/js/img_swtr.js
(1 / 0)
  | |||
325 | 325 | //console.log('image loaded', self); | |
326 | 326 | swtr.appView.$overlay.hide(); | |
327 | 327 | self.showImgAnnoControls(); | |
328 | self.toggleAnnoAreas(); | ||
328 | 329 | // reset the collection | |
329 | 330 | swtr.sweets.reset(); | |
330 | 331 | anno.makeAnnotatable(swtr.imgAnnoView.img); |
  | |||
11 | 11 | // HACK! to get around disabling annotorious' default text box in the | |
12 | 12 | // popup.. | |
13 | 13 | if(!annotation.text) { | |
14 | //console.log('no anno text:', annotation); | ||
14 | 15 | $('.annotorious-popup-text').hide(); | |
16 | } | ||
17 | else { | ||
18 | //console.log('anno text is there', annotation); | ||
19 | $('.annotorious-popup-text').show(); | ||
15 | 20 | } | |
16 | 21 | // this is the title | |
17 | 22 | return (annotation.title) ? '<h4>' + annotation.title + '</h4>' : ''; |