From 1bf526124d5e7f8949504b7f2ed225b201f66178 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 20 Jan 2013 22:34:27 +0000 Subject: [PATCH] resolve #1349 --- src/static/js/admin/plugins.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index ddff767bf..2682d97d6 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -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(""+plugin[attr]+""); + }else{ + row.find(".name").html(plugin["name"]); + } + } } row.find(".version").html(version);