diff -r 5566738cb829 -r 7396abb7e251 src/widgets/AnnotationsList.js
--- a/src/widgets/AnnotationsList.js Wed Sep 04 18:13:22 2013 +0200
+++ b/src/widgets/AnnotationsList.js Thu Sep 05 12:53:58 2013 +0200
@@ -222,8 +222,7 @@
}
var _tmpId = "jwplayer-" + IriSP.Model.getUID();
_this.jwplayers[_annotation.id] = _tmpId;
- _this.$.find(".Ldt-AnnotationsList-Audio").append($("
").attr("id", _tmpId));
- console.log(_audiofile);
+ _this.$.find(".Ldt-AnnotationsList-Audio").append(IriSP.jQuery("
").attr("id", _tmpId));
jwplayer(_tmpId).setup({
flashplayer: IriSP.getLib("jwPlayerSWF"),
file: _audiofile,
@@ -238,7 +237,7 @@
},
onPlay: function() {
_this.$.find(".Ldt-AnnotationsList-Play[data-annotation-id=" + _annotation.id + "]").text(_this.l10n.now_playing)
- },
+ }
}
});
}
@@ -246,11 +245,11 @@
var _html = Mustache.to_html(_this.annotationTemplate, _data),
_el = IriSP.jQuery(_html),
_onselect = function() {
- _this.annotations_$.removeClass("selected");
+ _this.$.find('.Ldt-AnnotationsList-li').removeClass("selected");
_el.addClass("selected");
},
_onunselect = function() {
- _this.annotations_$.removeClass("selected");
+ _this.$.find('.Ldt-AnnotationsList-li').removeClass("selected");
};
_el.mouseover(function() {
_annotation.trigger("select");
@@ -273,8 +272,6 @@
_annotation.on("unselect", _onunselect);
});
- this.annotations_$ = this.$.find('.Ldt-AnnotationsList-li');
-
/* Correct the empty tag bug */
this.$.find('.Ldt-AnnotationsList-Tag-Li').each(function() {
var _el = IriSP.jQuery(this);