diff -r b5ada3bb8e53 -r 2fad193bae98 client/js/wikipedia-bin.js
--- a/client/js/wikipedia-bin.js Tue Aug 21 18:49:41 2012 +0200
+++ b/client/js/wikipedia-bin.js Wed Aug 22 16:50:42 2012 +0200
@@ -3,14 +3,14 @@
Rkns.Bins.Wikipedia.prototype.resultTemplate = Rkns._.template(
'
" data-description="<%=wpdesc%>">'
- + ''
+ + ''
+ '<%=result.snippet%>
'
);
Rkns.Bins.Wikipedia.prototype._init = function(_renkan, _opts) {
this.search = _opts.search;
this.lang = _opts.lang || "en";
- this.title_$.html(_opts.title + ': "' + this.search + '"')
+ this.title_$.html(_opts.title + ': "' + this.search + '"');
var _this = this;
Rkns.$.getJSON(
"http://" + _this.lang + ".wikipedia.org/w/api.php?action=query&list=search&srsearch=" + encodeURIComponent(this.search) + "&format=json&callback=?",
@@ -25,6 +25,7 @@
});
}).join("");
_this.main_$.html(_html);
+ _renkan.resizeBins();
}
);
}
\ No newline at end of file