client/js/list-bin.js
changeset 139 9929b1447f69
parent 132 860340d4c645
child 160 408da84d4dc0
--- a/client/js/list-bin.js	Fri Apr 05 13:51:47 2013 +0200
+++ b/client/js/list-bin.js	Fri Apr 05 13:56:22 2013 +0200
@@ -4,8 +4,9 @@
 
 Rkns.ResourceList.Bin.prototype.resultTemplate = Rkns._.template(
     '<li class="Rk-Bin-Item Rk-ResourceList-Item" draggable="true" data-uri="<%-url%>" '
-    + 'data-title="<%-title%>" data-description="<%-description%>" data-image="<%- Rkns.Utils.getFullURL(image) %>">'
-    + '<% if (image) { %><img class="Rk-ResourceList-Image" src="<%-image%>"><% } %></div><h4 class="Rk-ResourceList-Title">'
+    + 'data-title="<%-title%>" data-description="<%-description%>" '
+    + '<% if (image) { %>data-image="<%- Rkns.Utils.getFullURL(image) %>"<% } else { %>data-image=""<% } %> >'
+    + '<% if (image) { %><img class="Rk-ResourceList-Image" src="<%-image%>"/><% } %><h4 class="Rk-ResourceList-Title">'
     + '<% if (url) { %><a href="<%-url%>" target="_blank"><% } %><%=htitle%><% if (url) { %></a><% } %></h4>'
     + '<% if (description) { %><p class="Rk-ResourceList-Description"><%=hdescription%></p><% } %><% if (image) { %><div style="clear: both;"></div><% } %></li>'
 );