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

swtr/static/js/swtmaker.js

277 return false;277 return false;
278 },278 },
279 showHide: function() {279 showHide: function() {
280 if($("input:checked").length) {
281 $("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();
286 $('.annotorious-item-unfocus').css("opacity", "0");284 $('.annotorious-item-unfocus').css("opacity", "0");
287 }285 }
288286

swtr/templates/index.html

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"/ > <label38 <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>
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">