Add links for installed plugins

pull/1379/head
Marcel Klehr 2013-01-24 13:43:42 +01:00
parent 6ae46ea8e3
commit 9fa5b9506e
1 changed files with 5 additions and 1 deletions

View File

@ -151,8 +151,12 @@ $(document).ready(function () {
var row = $("#installed-plugin-template").clone();
for (attr in plugin.package) {
if(attr == "name"){ // Hack to rewrite URLS into name
row.find(".name").html("<a target='_blank' href='https://npmjs.org/package/"+plugin.package['name']+"'>"+plugin.package[attr]+"</a>");
}else{
row.find("." + attr).html(plugin.package[attr]);
}
}
$("#installed-plugins").append(row);
}
updateHandlers();