diff -r 17ff0be41a5b -r a9b9e6c7be63 client/js/wikipedia-bin.js --- a/client/js/wikipedia-bin.js Mon Feb 11 12:39:35 2013 +0100 +++ b/client/js/wikipedia-bin.js Mon Feb 11 18:08:19 2013 +0100 @@ -27,12 +27,13 @@ Rkns.Wikipedia.Bin.prototype.resultTemplate = Rkns._.template( '
  • ' - + '

    <%=htitle%>

    ' + + 'data-title="Wikipedia: <%-title%>" data-description="<%-description%>" data-image="<%-static_url%>img/wikipedia.png">' + + '

    <%=htitle%>

    ' + '

    <%=hdescription%>

  • ' ); Rkns.Wikipedia.Bin.prototype._init = function(_renkan, _opts) { + this.renkan = _renkan; this.search = _opts.search; this.lang = _opts.lang || "en"; this.title_icon_$.addClass('Rk-Wikipedia-Title-Icon Rk-Wikipedia-Lang-' + this.lang); @@ -64,7 +65,8 @@ title: title, htitle: highlight(title), description: description, - hdescription: highlight(description) + hdescription: highlight(description), + static_url: _this.renkan.static_url }); }); _this.main_$.html(_html); @@ -78,7 +80,7 @@ } else { this.$.show(); } - _renkan.resizeBins(); + this.renkan.resizeBins(); } Rkns.Wikipedia.Bin.prototype.refresh = function() {