Commit 7477a414055a83e774476b7d54b99c6c446a3cef

Fix issues/bugs

  - Change text of sweet button to Publish.
  - Fix error in HelpView
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/css/swtmaker.css

126 display: none;126 display: none;
127}127}
128128
129footer {
130 font-size: 0.9em;
131 text-align: center;
132}
133
129134
130/* text-annotation styles */135/* text-annotation styles */
131136

swtr/static/js/main.js

93 },93 },
94 postSweets: function() {94 postSweets: function() {
95 var appView = swtr.appView;95 var appView = swtr.appView;
96 var self = this;
96 this.helpview.step(5);97 this.helpview.step(5);
97 appView.$overlay.show();98 appView.$overlay.show();
98 try {99 try {
102 console.log(collection, response);102 console.log(collection, response);
103 swtr.sweets.set(collection);103 swtr.sweets.set(collection);
104 appView.$overlay.hide();104 appView.$overlay.hide();
105 this.helpview.step(6);
105 self.helpview.step(6);
106 },106 },
107 error: function(jqxhr, error, text) {107 error: function(jqxhr, error, text) {
108 console.log(jqxhr, error, text);108 console.log(jqxhr, error, text);
109 appView.$overlay.hide();109 appView.$overlay.hide();
110 this.helpview.step(10);
110 self.helpview.step(10);
111 }111 }
112 });112 });
113 } catch(e) {113 } catch(e) {
114 if(e.message == 'Access Token is required to sweet') {114 if(e.message == 'Access Token is required to sweet') {
115 appView.$overlay.hide();115 appView.$overlay.hide();
116 this.helpview.step(9);
116 self.helpview.step(9);
117 }117 }
118 }118 }
119 this.cleanUp();119 this.cleanUp();
591 break;591 break;
592 case 2: text = 'Annotate the image, or see other annotations';592 case 2: text = 'Annotate the image, or see other annotations';
593 break;593 break;
594 case 3: text = 'Now you can sweet this annotation, or add more annotations';
594 case 3: text = 'Now you can publish this annotation, or add more annotations';
595 break;595 break;
596 case 4: text = 'Click Sweet button to publish these annotations to the Sweet Store';596 case 4: text = 'Click Sweet button to publish these annotations to the Sweet Store';
597 break;597 break;

swtr/templates/index.html

139139
140 <hr/>140 <hr/>
141141
142 <footer style="text-align: center; font-size: 0.9em;">
142 <footer>
143 <!--p>This app is part of the <a href="http://www.opencultuurdata.nl/challenge-english/">143 <!--p>This app is part of the <a href="http://www.opencultuurdata.nl/challenge-english/">
144 Open Cuultur Data challenge</a>144 Open Cuultur Data challenge</a>
145 </p-->145 </p-->
153 [<b>Clink</b>: Middle English clinken, probably from Middle Dutch klinken, of153 [<b>Clink</b>: Middle English clinken, probably from Middle Dutch klinken, of
154 imitative origin.]154 imitative origin.]
155 </p>155 </p>
156 <p style="font-size: 0.8em;">
157 Made with &hearts; by <a href="//twitter.com/rayanon">Anon Ray</a>
158 and <a href="//twitter.com/arvindkhadri">Arvind Khadri</a>
159 </p>
156 </footer>160 </footer>
157 </div>161 </div>
158162
268 <div class="col-md-8">268 <div class="col-md-8">
269 <form class="form-inline" role="form">269 <form class="form-inline" role="form">
270 <div class="form-group">270 <div class="form-group">
271 <button class="btn btn-default" id="sweet">Sweet</button>
271 <button class="btn btn-default" id="sweet">Publish</button>
272 </div>272 </div>
273 </form>273 </form>
274 </div>274 </div>