equal
deleted
inserted
replaced
2 IriSP.Widget.call(this, Popcorn, config, Serializer); |
2 IriSP.Widget.call(this, Popcorn, config, Serializer); |
3 |
3 |
4 }; |
4 }; |
5 |
5 |
6 |
6 |
7 IriSP.AnnotationsWidget.prototype = new IriSP.Widget; |
7 IriSP.AnnotationsWidget.prototype = new IriSP.Widget(); |
8 |
8 |
9 IriSP.AnnotationsWidget.prototype.clear = function() { |
9 IriSP.AnnotationsWidget.prototype.clear = function() { |
10 IriSP.jQuery("#Ldt-SaTitle").text(""); |
10 IriSP.jQuery("#Ldt-SaTitle").text(""); |
11 IriSP.jQuery("#Ldt-SaDescription").text(""); |
11 IriSP.jQuery("#Ldt-SaDescription").text(""); |
12 IriSP.jQuery("#Ldt-SaKeywordText").text(""); |
12 IriSP.jQuery("#Ldt-SaKeywordText").text(""); |
40 IriSP.AnnotationsWidget.prototype.draw = function() { |
40 IriSP.AnnotationsWidget.prototype.draw = function() { |
41 var _this = this; |
41 var _this = this; |
42 |
42 |
43 var annotationMarkup = Mustache.to_html(IriSP.annotationWidget_template, {"share_template" : IriSP.share_template}); |
43 var annotationMarkup = Mustache.to_html(IriSP.annotationWidget_template, {"share_template" : IriSP.share_template}); |
44 IriSP.jQuery("#Ldt-Ligne").append(annotationMarkup); |
44 IriSP.jQuery("#Ldt-Ligne").append(annotationMarkup); |
45 |
45 |
46 var annotations = this._serializer._data.annotations; |
46 var annotations = this._serializer._data.annotations; |
47 for (i in annotations) { |
47 for (i in annotations) { |
48 var annotation = annotations[i]; |
48 var annotation = annotations[i]; |
49 var begin = Math.round((+ annotation.begin) / 1000); |
49 var begin = Math.round((+ annotation.begin) / 1000); |
50 var end = Math.round((+ annotation.end) / 1000); |
50 var end = Math.round((+ annotation.end) / 1000); |