equal
deleted
inserted
replaced
39 this.selector.append(annotationMarkup); |
39 this.selector.append(annotationMarkup); |
40 |
40 |
41 if (!this.cinecast_version) |
41 if (!this.cinecast_version) |
42 this.selector.hide(); |
42 this.selector.hide(); |
43 |
43 |
|
44 // add the keywords. |
44 for (var i = 0; i < this.keywords.length; i++) { |
45 for (var i = 0; i < this.keywords.length; i++) { |
45 var keyword = this.keywords[i]; |
46 var keyword = this.keywords[i]; |
46 var id = IriSP.guid("button_"); |
47 var id = IriSP.guid("button_"); |
47 var templ = IriSP.templToHTML("<button id={{id}} class='Ldt-createAnnotation-absent-keyword'>{{keyword}}</button>", |
48 var templ = IriSP.templToHTML("<button id={{id}} class='Ldt-createAnnotation-absent-keyword'>{{keyword}}</button>", |
48 {keyword: keyword, id: id}); |
49 {keyword: keyword, id: id}); |
258 }; |
259 }; |
259 |
260 |
260 IriSP.createAnnotationWidget.prototype.showStartScreen = function() { |
261 IriSP.createAnnotationWidget.prototype.showStartScreen = function() { |
261 this.selector.find(".Ldt-createAnnotation-DoubleBorder").children().hide(); |
262 this.selector.find(".Ldt-createAnnotation-DoubleBorder").children().hide(); |
262 this.selector.find(".Ldt-createAnnotation-startScreen").show(); |
263 this.selector.find(".Ldt-createAnnotation-startScreen").show(); |
263 this.selector.find("Ldt-createAnnotation-Description").val("Type your annotation here."); |
264 this.selector.find(".Ldt-createAnnotation-Description").val("Type your annotation here."); |
264 }; |
265 }; |
265 |
266 |
266 IriSP.createAnnotationWidget.prototype.showWaitScreen = function() { |
267 IriSP.createAnnotationWidget.prototype.showWaitScreen = function() { |
267 this.selector.find(".Ldt-createAnnotation-DoubleBorder").children().hide(); |
268 this.selector.find(".Ldt-createAnnotation-DoubleBorder").children().hide(); |
268 this.selector.find(".Ldt-createAnnotation-waitScreen").show(); |
269 this.selector.find(".Ldt-createAnnotation-waitScreen").show(); |
431 }), |
432 }), |
432 error: |
433 error: |
433 function(jqXHR, textStatus, errorThrown) { |
434 function(jqXHR, textStatus, errorThrown) { |
434 console.log("an error occured while contacting " |
435 console.log("an error occured while contacting " |
435 + url + " and sending " + jsonString + textStatus ); |
436 + url + " and sending " + jsonString + textStatus ); |
436 debugger; |
|
437 _this.showErrorScreen(); } }); |
437 _this.showErrorScreen(); } }); |
438 }; |
438 }; |