diff --git a/src/static/css/admin.css b/src/static/css/admin.css
index b91850a65..d82da6aa3 100644
--- a/src/static/css/admin.css
+++ b/src/static/css/admin.css
@@ -128,3 +128,13 @@ td, th {
#response{
display:inline;
}
+
+a:link, a:visited, a:hover, a:focus {
+ color: #333333;
+ text-decoration: none;
+ border-bottom: #333333 1px dotted;
+}
+
+a:focus, a:hover {
+ border-bottom: #333333 1px solid;
+}
\ No newline at end of file
diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js
index ddff767bf..03f6203b8 100644
--- a/src/static/js/admin/plugins.js
+++ b/src/static/js/admin/plugins.js
@@ -47,13 +47,13 @@ $(document).ready(function () {
$(".do-install").unbind('click').click(function (e) {
var row = $(e.target).closest("tr");
doUpdate = true;
- socket.emit("install", row.find(".name").html());
+ socket.emit("install", row.find(".name").text());
});
$(".do-uninstall").unbind('click').click(function (e) {
var row = $(e.target).closest("tr");
doUpdate = true;
- socket.emit("uninstall", row.find(".name").html());
+ socket.emit("uninstall", row.find(".name").text());
});
$(".do-prev-page").unbind('click').click(function (e) {
@@ -114,7 +114,11 @@ $(document).ready(function () {
widget.data('total', data.total);
widget.find('.offset').html(data.query.offset);
- widget.find('.limit').html(data.query.offset + data.query.limit);
+ if (data.query.offset + data.query.limit > data.total){
+ widget.find('.limit').html(data.total);
+ }else{
+ widget.find('.limit').html(data.query.offset + data.query.limit);
+ }
widget.find('.total').html(data.total);
widget.find(".results *").remove();
@@ -124,9 +128,12 @@ $(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(".name").html(""+plugin[attr]+"");
+ }else{
+ row.find("." + attr).html(plugin[attr]);
+ }
}
row.find(".version").html(version);
@@ -144,7 +151,11 @@ $(document).ready(function () {
var row = $("#installed-plugin-template").clone();
for (attr in plugin.package) {
- row.find("." + attr).html(plugin.package[attr]);
+ if(attr == "name"){ // Hack to rewrite URLS into name
+ row.find(".name").html(""+plugin.package[attr]+"");
+ }else{
+ row.find("." + attr).html(plugin.package[attr]);
+ }
}
$("#installed-plugins").append(row);
}