Commit b5e65154dd9e2455a36d3a561ecbbeb483a1add9

Check box option to Show/Hide selection box from Image Anno
  
177177 events: {
178178 'click #img-url-submit': 'setImage',
179179 'click #sweet': 'sweet',
180 'click #signin-credentials': 'getSignInCredentials'
180 'click #signin-credentials': 'getSignInCredentials',
181 'click #setbox': 'showHide'
181182 },
182183 initialize: function() {
183184 //var allElements = $('body *');
190190 anno.hideAnnotations();});
191191 anno.addHandler('onSelectionCompleted', function(annotation) {
192192 anno.showAnnotations(); });
193 anno.addHandler('onEditorShown', function(annotation) {
194 anno.hideAnnotations();} );
193
194
195195 this.$overlay = $('#app-overlay');
196196 this.$img = $('#annotatable-img');
197197 this.imgURL = this.$img.attr('src');
203203 this.helpview.step(1);
204204 }
205205 },
206 showHide: function() {
207 if($("input:checked").length) {
208 $('.annotorious-item-unfocus').css("opacity", "0.5");
209 }
210 else {
211 $('.annotorious-item-unfocus').css("opacity", "0");
212 }
213
214 },
215
206216 setImage: function() {
207217 anno.reset();
208218 this.imgURL = $('#img-url-input').val();
  
3131 </div>
3232 <button class="btn btn-default" id="img-url-submit">GO</button>
3333 <button class="btn btn-default" id="sweet">Sweet</button>
34 <input id="setbox" type="checkbox" >Show/Hide Box</input>
3435 </div>
3536 <div id="img-annotation-wrapper" class="col-md-12 col-xs-12 col-lg-12 col-sm-12 well">
3637 {% if url %}