client/js/ldtjson-bin.js
changeset 58 87569ad0ff53
parent 44 869410bab434
child 61 cf48c6d69717
--- a/client/js/ldtjson-bin.js	Wed Feb 13 13:41:19 2013 +0100
+++ b/client/js/ldtjson-bin.js	Thu Feb 14 01:20:14 2013 +0100
@@ -3,8 +3,8 @@
 Rkns.Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin);
 
 Rkns.Ldt.ProjectBin.prototype.tagTemplate = Rkns._.template(
-    '<li class="Rk-Bin-Item" data-image="img/ldt-tag.png" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/search/?search=<%=encodedtitle%>&field=all" data-title="<%-title%>" data-description="Tag \'<%-title%>\'">'
-    + '<img class="Rk-Ldt-Tag-Icon" src="img/ldt-tag.png" /><h4><%=htitle%></h4><div class="Rk-Clear"></div></li>'
+    '<li class="Rk-Bin-Item" data-image="<%-static_url%>img/ldt-tag.png" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/search/?search=<%=encodedtitle%>&field=all" data-title="<%-title%>" data-description="Tag \'<%-title%>\'">'
+    + '<img class="Rk-Ldt-Tag-Icon" src="<%-static_url%>img/ldt-tag.png" /><h4><%=htitle%></h4><div class="Rk-Clear"></div></li>'
 );
 
 Rkns.Ldt.ProjectBin.prototype.annotationTemplate = Rkns._.template(
@@ -63,7 +63,8 @@
             ldt_platform: _this.ldt_platform,
             title: _title,
             htitle: highlight(_title),
-            encodedtitle : encodeURIComponent(_title)
+            encodedtitle : encodeURIComponent(_title),
+            static_url: _this.renkan.static_url
         })
     });
     _html += '<li><h3>Annotations</h3></li>';
@@ -78,7 +79,7 @@
             _img = (
                 (_annotation.content && _annotation.content.img && _annotation.content.img.src)
                 ? _annotation.content.img.src
-                : ( _duration ? "img/ldt-segment.png" : "img/ldt-point.png" )
+                : ( _duration ? _this.renkan.static_url+"img/ldt-segment.png" : _this.renkan.static_url+"img/ldt-point.png" )
             );
         _html += _this.annotationTemplate({
             ldt_platform: _this.ldt_platform,
@@ -91,7 +92,8 @@
             duration: convertTC(_duration),
             mediaid: _annotation.media,
             annotationid: _annotation.id,
-            image: _img
+            image: _img,
+            static_url: _this.renkan.static_url
         });
     });