equal
deleted
inserted
replaced
69 + '<img class="Ldt-AnnotationsList-Thumbnail" src="{{thumbnail}}" />' |
69 + '<img class="Ldt-AnnotationsList-Thumbnail" src="{{thumbnail}}" />' |
70 + '</a>' |
70 + '</a>' |
71 + '</div>' |
71 + '</div>' |
72 + '<div class="Ldt-AnnotationsList-Duration">{{begin}} - {{end}}</div>' |
72 + '<div class="Ldt-AnnotationsList-Duration">{{begin}} - {{end}}</div>' |
73 + '<h3 class="Ldt-AnnotationsList-Title">' |
73 + '<h3 class="Ldt-AnnotationsList-Title">' |
74 + '<a href="{{url}}">{{title}}</a>' |
74 + '<a href="{{url}}">{{{title}}}</a>' |
75 + '</h3>' |
75 + '</h3>' |
76 + '<p class="Ldt-AnnotationsList-Description">{{description}}</p>' |
76 + '<p class="Ldt-AnnotationsList-Description">{{{description}}}</p>' |
77 + '{{#tags.length}}' |
77 + '{{#tags.length}}' |
78 + '<ul class="Ldt-AnnotationsList-Tags">' |
78 + '<ul class="Ldt-AnnotationsList-Tags">' |
79 + '{{#tags}}' |
79 + '{{#tags}}' |
80 + '{{#.}}' |
80 + '{{#.}}' |
81 + '<li class="Ldt-AnnotationsList-Tag-Li">' |
81 + '<li class="Ldt-AnnotationsList-Tag-Li">' |
200 } |
200 } |
201 }); |
201 }); |
202 var _data = { |
202 var _data = { |
203 id : _annotation.id, |
203 id : _annotation.id, |
204 media_id : _annotation.getMedia().id, |
204 media_id : _annotation.getMedia().id, |
205 title : _title, |
205 title : IriSP.textFieldHtml(_title), |
206 description : _description, |
206 description : IriSP.textFieldHtml(_description), |
207 begin : _annotation.begin.toString(), |
207 begin : _annotation.begin.toString(), |
208 end : _annotation.end.toString(), |
208 end : _annotation.end.toString(), |
209 thumbnail : typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail, |
209 thumbnail : typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail, |
210 url : _url, |
210 url : _url, |
211 tags : _annotation.getTagTexts(), |
211 tags : _annotation.getTagTexts(), |
263 _this.media.pause(); |
263 _this.media.pause(); |
264 _this.jw_paused_media = true; |
264 _this.jw_paused_media = true; |
265 }); |
265 }); |
266 |
266 |
267 if (this.source.getAnnotations().searching) { |
267 if (this.source.getAnnotations().searching) { |
|
268 var rx = _this.source.getAnnotations().regexp || false; |
268 this.$.find(".Ldt-AnnotationsList-Title a, .Ldt-AnnotationsList-Description").each(function() { |
269 this.$.find(".Ldt-AnnotationsList-Title a, .Ldt-AnnotationsList-Description").each(function() { |
269 var _$ = IriSP.jQuery(this); |
270 var _$ = IriSP.jQuery(this); |
270 _$.html(_$.text().replace(/(^\s+|\s+$)/g,'').replace(_this.source.getAnnotations().regexp, '<span class="Ldt-AnnotationsList-highlight">$1</span>')) |
271 _$.html(IriSP.textFieldHtml(_$.text(), rx)); |
271 }) |
272 }); |
272 } |
273 } |
273 } |
274 } |
274 |
275 |
275 if (this.ajax_url) { |
276 if (this.ajax_url) { |
276 if (this.mashupMode) { |
277 if (this.mashupMode) { |