aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/viewSource.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-13 12:20:05 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:47 +0200
commit83fd7fd92e5b21a177bc16cc7318792cf63a343b (patch)
tree20f3e5a59eb9ce32a9b9973d7131e7135bd94999 /data/tweaks/viewSource.js
parent5b837d6739a12a516203fa0505ca562839463a79 (diff)
downloadbugzilla-triage-83fd7fd92e5b21a177bc16cc7318792cf63a343b.tar.gz
Really Eclipseize formatting.
Diffstat (limited to 'data/tweaks/viewSource.js')
-rw-r--r--data/tweaks/viewSource.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/data/tweaks/viewSource.js b/data/tweaks/viewSource.js
index d2a9fd1..81e6735 100644
--- a/data/tweaks/viewSource.js
+++ b/data/tweaks/viewSource.js
@@ -38,9 +38,9 @@
var reAttachmentType = /,\s+([^ )]*)[;)]/;
function viewAttachmentSource(attachments) {
- attachments.forEach(function (att) {
+ attachments.forEach(function(att) {
if (att.length < 1) {
- return ;
+ return;
}
var typeName = att[2];
var elem = att[4];
@@ -56,14 +56,16 @@ function viewAttachmentSource(attachments) {
//
// https://bugzilla.mozilla.org/show_bug.cgi?id=369814#c5 has more
// possible mime types for zips?
- createDeadLink("viewSourceJAR_" + id, "JAR Contents", elem,
- "jar:" + attachHref + "!/", [], "pipe", null, null);
+ createDeadLink("viewSourceJAR_" + id, "JAR Contents",
+ elem, "jar:" + attachHref + "!/", [], "pipe", null,
+ null);
}
else if (typeName == "application/zip"
|| typeName == "application/x-zip-compressed"
|| typeName == "application/x-xpinstall") {
- createDeadLink("viewSourceZIP_" + id, "Static ZIP Contents", elem,
- "jar:" + attachHref + "!/", [], "pipe", null, null);
+ createDeadLink("viewSourceZIP_" + id,
+ "Static ZIP Contents", elem, "jar:" + attachHref
+ + "!/", [], "pipe", null, null);
}
else if (typeName != "text/plain" && typeName != "patch" &&
// Other types that Gecko displays like text/plain
@@ -77,8 +79,7 @@ function viewAttachmentSource(attachments) {
typeName != "image/gif" && typeName != "image/png"
&& typeName != "image/jpeg") {
createDeadLink("viewSourcePlain_" + id, "Source", elem,
- "view-source:" + attachHref, [], "pipe", null, null);
- }
+ "view-source:" + attachHref, [], "pipe", null, null);
}
- )
+ })
}