From 7477a414055a83e774476b7d54b99c6c446a3cef Mon Sep 17 00:00:00 2001
From: Anon Ray
Date: Tue, 2 Sep 2014 17:08:43 +0530
Subject: [PATCH] Fix issues/bugs
- Change text of sweet button to Publish.
- Fix error in HelpView
---
swtr/static/css/swtmaker.css | 5 +++++
swtr/static/js/main.js | 9 +++++----
swtr/templates/index.html | 8 ++++++--
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/swtr/static/css/swtmaker.css b/swtr/static/css/swtmaker.css
index be8e2ff..208624e 100644
--- a/swtr/static/css/swtmaker.css
+++ b/swtr/static/css/swtmaker.css
@@ -126,6 +126,11 @@ body {
display: none;
}
+footer {
+ font-size: 0.9em;
+ text-align: center;
+}
+
/* text-annotation styles */
diff --git a/swtr/static/js/main.js b/swtr/static/js/main.js
index dda08a8..dfaf5f6 100644
--- a/swtr/static/js/main.js
+++ b/swtr/static/js/main.js
@@ -93,6 +93,7 @@
},
postSweets: function() {
var appView = swtr.appView;
+ var self = this;
this.helpview.step(5);
appView.$overlay.show();
try {
@@ -101,18 +102,18 @@
console.log(collection, response);
swtr.sweets.set(collection);
appView.$overlay.hide();
- this.helpview.step(6);
+ self.helpview.step(6);
},
error: function(jqxhr, error, text) {
console.log(jqxhr, error, text);
appView.$overlay.hide();
- this.helpview.step(10);
+ self.helpview.step(10);
}
});
} catch(e) {
if(e.message == 'Access Token is required to sweet') {
appView.$overlay.hide();
- this.helpview.step(9);
+ self.helpview.step(9);
}
}
this.cleanUp();
@@ -590,7 +591,7 @@
break;
case 2: text = 'Annotate the image, or see other annotations';
break;
- case 3: text = 'Now you can sweet this annotation, or add more annotations';
+ case 3: text = 'Now you can publish this annotation, or add more annotations';
break;
case 4: text = 'Click Sweet button to publish these annotations to the Sweet Store';
break;
diff --git a/swtr/templates/index.html b/swtr/templates/index.html
index 174b074..7f7d6f3 100644
--- a/swtr/templates/index.html
+++ b/swtr/templates/index.html
@@ -139,7 +139,7 @@
-
+
+ Made with ♥ by Anon Ray
+ and Arvind Khadri
+
@@ -264,7 +268,7 @@
--
1.7.10.4