diff -r 7e18d953a1f8 -r 392ddcd212d7 src/widgets/AnnotationsList.js
--- a/src/widgets/AnnotationsList.js Mon Sep 30 14:39:34 2013 +0200
+++ b/src/widgets/AnnotationsList.js Tue Oct 01 15:41:46 2013 +0200
@@ -53,7 +53,7 @@
voice_annotation: "Annotation Vocale",
now_playing: "Lecture en cours..."
}
-}
+};
IriSP.Widgets.AnnotationsList.prototype.template =
'
'
@@ -102,7 +102,7 @@
this.currentSource = this.player.loadMetadata(IriSP._.defaults({
"url" : _url
}, this.metadata));
-}
+};
IriSP.Widgets.AnnotationsList.prototype.ajaxMashup = function() {
var _currentTime = this.media.getCurrentTime();
@@ -119,7 +119,7 @@
"url" : _url
}, this.metadata));
}
-}
+};
IriSP.Widgets.AnnotationsList.prototype.refresh = function(_forceRedraw) {
_forceRedraw = (typeof _forceRedraw !== "undefined" && _forceRedraw);
@@ -146,7 +146,7 @@
/* Get the n annotations closest to current timecode */
_list = _list.sortBy(function(_annotation) {
return Math.abs((_annotation.begin + _annotation.end) / 2 - _currentTime);
- }).slice(0, this.limit_count)
+ }).slice(0, this.limit_count);
}
if (this.newest_first) {
_list = _list.sortBy(function(_annotation) {
@@ -233,10 +233,10 @@
height: 1,
events: {
onPause: function() {
- _this.$.find(".Ldt-AnnotationsList-Play[data-annotation-id=" + _annotation.id + "]").text(_this.l10n.voice_annotation)
+ _this.$.find(".Ldt-AnnotationsList-Play[data-annotation-id=" + _annotation.id + "]").text(_this.l10n.voice_annotation);
},
onPlay: function() {
- _this.$.find(".Ldt-AnnotationsList-Play[data-annotation-id=" + _annotation.id + "]").text(_this.l10n.now_playing)
+ _this.$.find(".Ldt-AnnotationsList-Play[data-annotation-id=" + _annotation.id + "]").text(_this.l10n.now_playing);
}
}
});
@@ -312,7 +312,7 @@
}
}
return _list.length;
-}
+};
IriSP.Widgets.AnnotationsList.prototype.draw = function() {
@@ -372,7 +372,7 @@
if (this.refresh_interval) {
window.setInterval(function() {
- _this.currentSource.get()
+ _this.currentSource.get();
}, this.refresh_interval);
}