Commit 918a17f2e686e4defa604dfa1c47ddba8dcb41d4
Fixes
- Keeping the text of checkbox unchanged after the user has chosen
the option of showing annotation boxes.
| | | | 277 | return false; | 277 | return false; |
---|
278 | }, | 278 | }, |
---|
279 | showHide: function() { | 279 | showHide: function() { |
---|
280 | if($("input:checked").length) { | | if($("input:checked").length) { |
---|
281 | $("p").toggle(); | | $("p").toggle(); |
---|
| | 280 | if($("#setbox:checked").length) { | 282 | $('.annotorious-item-unfocus').css("opacity", "0.5"); | 281 | $('.annotorious-item-unfocus').css("opacity", "0.5"); |
---|
283 | } | 282 | } |
---|
284 | else { | 283 | else { |
---|
285 | $("p").toggle(); | | $("p").toggle(); |
---|
286 | $('.annotorious-item-unfocus').css("opacity", "0"); | 284 | $('.annotorious-item-unfocus').css("opacity", "0"); |
---|
287 | } | 285 | } |
---|
288 | | 286 | |
---|
| | | | 36 | <button class="btn btn-default" id="img-url-load">Annotate</button> | 36 | <button class="btn btn-default" id="img-url-load">Annotate</button> |
---|
37 | <button class="btn btn-default" id="sweet">Sweet</button> | 37 | <button class="btn btn-default" id="sweet">Sweet</button> |
---|
38 | <input id="setbox" type="checkbox"/ > <label | 38 | <input id="setbox" type="checkbox"/ > <label |
---|
39 | id="setcontrol"><p>Show annotated areas</p><p style="display: none">Hide | | id="setcontrol"><p>Show annotated areas</p><p style="display: none">Hide |
---|
40 | annotated areas</p></label> | | annotated areas</p></label> |
---|
| | 39 | id="setcontrol"><p>Show annotated areas</p></label> | 41 | </div> | 40 | </div> |
---|
42 | </div> | 41 | </div> |
---|
43 | <div id="img-annotation-wrapper" class="col-md-12 col-xs-12 col-lg-12 col-sm-12 well"> | 42 | <div id="img-annotation-wrapper" class="col-md-12 col-xs-12 col-lg-12 col-sm-12 well"> |
---|