Bug 180568 - Remove "Enabled" column from about:plugins. ui-r=faaborg r=jst,josh

This commit is contained in:
Saint Wesonga 2010-02-03 13:44:13 +01:00
parent e54cfccdb5
commit bc62bb2de6
3 changed files with 2 additions and 16 deletions

View File

@ -12,6 +12,5 @@ version_label=Version:
mimetype_label=MIME Type
description_label=Description
suffixes_label=Suffixes
enabled_label=Enabled
yes_label=Yes
no_label=No

View File

@ -111,13 +111,9 @@ td {
}
th.type, th.suff {
width: 20%;
width: 25%;
}
th.desc {
width: 50%;
}
th.enabled {
width: 10%;
}

View File

@ -129,30 +129,21 @@
document.writeln("<tr><th class=\"type\">" + pluginsbundle.GetStringFromName("mimetype_label") + "<\/th>");
document.writeln("<th class=\"desc\">" + pluginsbundle.GetStringFromName("description_label") + "<\/th>");
document.writeln("<th class=\"suff\">" + pluginsbundle.GetStringFromName("suffixes_label") + "<\/th>");
document.writeln("<th class=\"enabled\">" + pluginsbundle.GetStringFromName("enabled_label") + "<\/th><\/tr>");
document.writeln("<\/thead>");
document.writeln("<\/tr><\/thead>");
document.writeln("<tbody>");
var numTypes = plugin.length;
var mimetype;
var enabled;
var enabledPlugin;
for (var j = 0; j < numTypes; j++)
{
mimetype = plugin[j];
if (mimetype)
{
enabled = pluginsbundle.GetStringFromName("no_label");
enabledPlugin = mimetype.enabledPlugin;
if (enabledPlugin && (enabledPlugin.filename == plugin.filename))
enabled = pluginsbundle.GetStringFromName("yes_label");
document.writeln("<tr>");
document.writeln("<td>" + mimetype.type + "<\/td>");
document.writeln("<td>" + mimetype.description + "<\/td>");
document.writeln("<td>" + mimetype.suffixes + "<\/td>");
document.writeln("<td>" + enabled + "<\/td>");
document.writeln("<\/tr>");
}
}