mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Remove plugin prefix in pluin lists and make links to plugins more clear
This commit is contained in:
parent
7edfff7574
commit
f75a839cd0
2 changed files with 24 additions and 5 deletions
|
@ -155,7 +155,7 @@ td, th {
|
||||||
top: 0; left: 0; bottom:0; right:0;
|
top: 0; left: 0; bottom:0; right:0;
|
||||||
padding: auto;
|
padding: auto;
|
||||||
|
|
||||||
background: rgba(255,255,255,0.95);
|
background: rgb(255,255,255);
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,7 +187,25 @@ a:link, a:visited, a:hover, a:focus {
|
||||||
}
|
}
|
||||||
|
|
||||||
a:focus, a:hover {
|
a:focus, a:hover {
|
||||||
border-bottom: #333333 1px solid;
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.installed-results a:link,
|
||||||
|
.search-results a:link,
|
||||||
|
.installed-results a:visited,
|
||||||
|
.search-results a:visited,
|
||||||
|
.installed-results a:hover,
|
||||||
|
.search-results a:hover,
|
||||||
|
.installed-results a:focus,
|
||||||
|
.search-results a:focus {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.installed-results a:focus,
|
||||||
|
.search-results a:focus,
|
||||||
|
.installed-results a:hover,
|
||||||
|
.search-results a:hover {
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
|
|
@ -51,13 +51,14 @@ $(document).ready(function () {
|
||||||
|
|
||||||
for (attr in plugin) {
|
for (attr in plugin) {
|
||||||
if(attr == "name"){ // Hack to rewrite URLS into name
|
if(attr == "name"){ // Hack to rewrite URLS into name
|
||||||
row.find(".name").html("<a target='_blank' href='https://npmjs.org/package/"+plugin['name']+"'>"+plugin['name']+"</a>");
|
row.find(".name").html("<a target='_blank' href='https://npmjs.org/package/"+plugin['name']+"'>"+plugin['name'].substr(3)+"</a>"); // remove 'ep_'
|
||||||
}else{
|
}else{
|
||||||
row.find("." + attr).html(plugin[attr]);
|
row.find("." + attr).html(plugin[attr]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
row.find(".version").html( plugin.version );
|
row.find(".version").html( plugin.version );
|
||||||
row.addClass(plugin.name)
|
row.addClass(plugin.name)
|
||||||
|
row.data('plugin', plugin.name)
|
||||||
container.append(row);
|
container.append(row);
|
||||||
})
|
})
|
||||||
updateHandlers();
|
updateHandlers();
|
||||||
|
@ -83,7 +84,7 @@ $(document).ready(function () {
|
||||||
// update & install
|
// update & install
|
||||||
$(".do-install, .do-update").unbind('click').click(function (e) {
|
$(".do-install, .do-update").unbind('click').click(function (e) {
|
||||||
var $row = $(e.target).closest("tr")
|
var $row = $(e.target).closest("tr")
|
||||||
, plugin = $row.find(".name").text();
|
, plugin = $row.data('plugin');
|
||||||
$row.remove().appendTo('#installed-plugins')
|
$row.remove().appendTo('#installed-plugins')
|
||||||
socket.emit("install", plugin);
|
socket.emit("install", plugin);
|
||||||
installed.progress.show(plugin, 'Installing')
|
installed.progress.show(plugin, 'Installing')
|
||||||
|
@ -93,7 +94,7 @@ $(document).ready(function () {
|
||||||
// uninstall
|
// uninstall
|
||||||
$(".do-uninstall").unbind('click').click(function (e) {
|
$(".do-uninstall").unbind('click').click(function (e) {
|
||||||
var $row = $(e.target).closest("tr")
|
var $row = $(e.target).closest("tr")
|
||||||
, pluginName = $row.find(".name").text();
|
, pluginName = $row.data('plugin');
|
||||||
socket.emit("uninstall", pluginName);
|
socket.emit("uninstall", pluginName);
|
||||||
installed.progress.show(pluginName, 'Uninstalling')
|
installed.progress.show(pluginName, 'Uninstalling')
|
||||||
installed.list = installed.list.filter(function(plugin) {
|
installed.list = installed.list.filter(function(plugin) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue