equal
deleted
inserted
replaced
28 }; |
28 }; |
29 |
29 |
30 IriSP.createAnnotationWidget.prototype.draw = function() { |
30 IriSP.createAnnotationWidget.prototype.draw = function() { |
31 var _this = this; |
31 var _this = this; |
32 |
32 |
33 var annotationMarkup = IriSP.templToHTML(IriSP.createAnnotationWidget_template, |
33 var annotationMarkup = IriSP.templToHTML(IriSP.createAnnotationWidget_template); |
34 {keywords: this.keywords}); |
|
35 this.selector.append(annotationMarkup); |
34 this.selector.append(annotationMarkup); |
|
35 |
36 this.selector.hide(); |
36 this.selector.hide(); |
|
37 for (var i = 0; i < this.keywords.length; i++) { |
|
38 var templ = IriSP.templToHTML("<span class='Ldt-createAnnotation-absent-keyword'>{{keyword}}</span>", |
|
39 {keyword: this.keywords[i]}); |
|
40 |
|
41 this.selector.find(".Ldt-createAnnotation-keywords").append(templ); |
|
42 } |
|
43 |
37 |
44 |
38 this._Popcorn.listen("IriSP.PlayerWidget.AnnotateButton.clicked", |
45 this._Popcorn.listen("IriSP.PlayerWidget.AnnotateButton.clicked", |
39 IriSP.wrap(this, this.handleAnnotateSignal)); |
46 IriSP.wrap(this, this.handleAnnotateSignal)); |
40 }; |
47 }; |
41 |
48 |