зеркало из https://github.com/mozilla/pjs.git
Bug 180568 - Remove "Enabled" column from about:plugins. ui-r=faaborg r=jst,josh
This commit is contained in:
Родитель
f5a17df66d
Коммит
2603ed889d
|
@ -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
|
||||
|
|
|
@ -111,13 +111,9 @@ td {
|
|||
}
|
||||
|
||||
th.type, th.suff {
|
||||
width: 20%;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
th.desc {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
th.enabled {
|
||||
width: 10%;
|
||||
}
|
||||
|
|
|
@ -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>");
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче