Commit 918a17f2e686e4defa604dfa1c47ddba8dcb41d4

  • avatar
  • arvind
  • Sat May 17 12:03:22 IST 2014
Fixes
    - Keeping the text of checkbox unchanged after the user has chosen
    the option of showing annotation boxes.
  
277277 return false;
278278 },
279279 showHide: function() {
280 if($("input:checked").length) {
281 $("p").toggle();
280 if($("#setbox:checked").length) {
282281 $('.annotorious-item-unfocus').css("opacity", "0.5");
283282 }
284283 else {
285 $("p").toggle();
286284 $('.annotorious-item-unfocus').css("opacity", "0");
287285 }
288286
  
3636 <button class="btn btn-default" id="img-url-load">Annotate</button>
3737 <button class="btn btn-default" id="sweet">Sweet</button>
3838 <input id="setbox" type="checkbox"/ > <label
39 id="setcontrol"><p>Show annotated areas</p><p style="display: none">Hide
40 annotated areas</p></label>
39 id="setcontrol"><p>Show annotated areas</p></label>
4140 </div>
4241 </div>
4342 <div id="img-annotation-wrapper" class="col-md-12 col-xs-12 col-lg-12 col-sm-12 well">