--- a/swtr/static/js/swtmaker.js +++ b/swtr/static/js/swtmaker.js @@ -175,6 +175,7 @@ var AppView = Backbone.View.extend({ el: $('#swt-maker'), events: { + 'click #img-url-load': 'setImage', 'click #img-url-submit': 'setImage', 'click #sweet': 'sweet', 'click #signin-credentials': 'getSignInCredentials', @@ -190,8 +191,8 @@ anno.hideAnnotations();}); anno.addHandler('onSelectionCompleted', function(annotation) { anno.showAnnotations(); }); - - + + this.$overlay = $('#app-overlay'); this.$img = $('#annotatable-img'); this.imgURL = this.$img.attr('src'); @@ -243,7 +244,7 @@ }, error: function(jqxhr, error, statusText) { if(jqxhr.status === 404) { //annotations don't exist for this image - //console.log('annotations don\'t exist for this image. Create one!'); + console.log('annotations don\'t exist for this image. Create one!'); } swtr.appView.$overlay.hide(); swtr.appView.helpview.step(2); @@ -284,7 +285,7 @@ $("p").toggle(); $('.annotorious-item-unfocus').css("opacity", "0"); } - + }, getSignInCredentials: function(event) { event.preventDefault(); --- a/swtr/templates/index.html +++ b/swtr/templates/index.html @@ -15,7 +15,7 @@
Show annotated areas
+