equal
deleted
inserted
replaced
1 Rkns.ResourceList = {}; |
1 Rkns.ResourceList = {}; |
2 |
2 |
3 Rkns.ResourceList.Bin = Rkns.Utils.inherit(Rkns._BaseBin); |
3 Rkns.ResourceList.Bin = Rkns.Utils.inherit(Rkns._BaseBin); |
4 |
4 |
5 Rkns.ResourceList.Bin.prototype.resultTemplate = Rkns._.template( |
5 Rkns.ResourceList.Bin.prototype.resultTemplate = renkanJST['templates/list-bin.html']; |
6 '<li class="Rk-Bin-Item Rk-ResourceList-Item" draggable="true" data-uri="<%-url%>" ' + |
|
7 'data-title="<%-title%>" data-description="<%-description%>" ' + |
|
8 '<% if (image) { %>data-image="<%- Rkns.Utils.getFullURL(image) %>"<% } else { %>data-image=""<% } %> >' + |
|
9 '<% if (image) { %><img class="Rk-ResourceList-Image" src="<%-image%>"/><% } %><h4 class="Rk-ResourceList-Title">' + |
|
10 '<% if (url) { %><a href="<%-url%>" target="_blank"><% } %><%=htitle%><% if (url) { %></a><% } %></h4>' + |
|
11 '<% if (description) { %><p class="Rk-ResourceList-Description"><%=hdescription%></p><% } %><% if (image) { %><div style="clear: both;"></div><% } %></li>' |
|
12 ); |
|
13 |
6 |
14 Rkns.ResourceList.Bin.prototype._init = function(_renkan, _opts) { |
7 Rkns.ResourceList.Bin.prototype._init = function(_renkan, _opts) { |
15 this.renkan = _renkan; |
8 this.renkan = _renkan; |
16 this.title_$.html(_opts.title); |
9 this.title_$.html(_opts.title); |
17 if (_opts.list) { |
10 if (_opts.list) { |