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-05-13 12:20:05 +0200
commit97f8f5ad45a8dfbde27f555eafec5d8318ad67b2 (patch)
treea81faa56305eba7d3900257b971d9eafac0dbd89 /data/tweaks/viewSource.js
parent95c260d3edeeb85194193bfcbd1e991e4dadadbc (diff)
downloadbugzilla-triage-97f8f5ad45a8dfbde27f555eafec5d8318ad67b2.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);
}
- )
+ })
}