This commit is contained in:
John McLear 2013-01-20 22:34:27 +00:00
parent 4204bf9009
commit 1bf526124d

View file

@ -124,9 +124,16 @@ $(document).ready(function () {
var version = '0.0.0';
// hack to access "versions" property of the npm package object
for (version in data.results[plugin_name].versions) break;
for (attr in plugin) {
row.find("." + attr).html(plugin[attr]);
if(attr != "name"){ // Hack to rewrite URLS into name
row.find("." + attr).html(plugin[attr]);
}else{
if(plugin['url']){
row.find(".name").html("<a href='"+plugin['url'] +"'>"+plugin[attr]+"</a>");
}else{
row.find(".name").html(plugin["name"]);
}
}
}
row.find(".version").html(version);