diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-07-19 14:30:39 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-07-19 15:22:49 +0200 |
commit | d75f36db36c442ae9621dc128fbd916c25d5735f (patch) | |
tree | c9ed3fcd6f86d28a9434b95e5060f3f64be17917 /data/tweaks/viewSource.js | |
parent | e06a2341056cabd82fae8527d30a9ec97b24dc10 (diff) | |
parent | 4ef203c974e889b74e4064ee04eddc55ba7b8c08 (diff) | |
download | bugzilla-triage-d75f36db36c442ae9621dc128fbd916c25d5735f.tar.gz |
Merge branch 'bugzillatweaks' into next.
This is a horribly botched branch merged.
Conflicts:
chip-data/chipNames.json
data/lib/bugzillaDOMFunctions.js
data/lib/bzpage.js
data/lib/jumpNextBug.js
data/lib/otherButtons.js
data/lib/queries.js
data/lib/util.js
data/rhlib/addAttachmentRow.js
data/rhlib/fixingAttMIME.js
data/rhlib/rhbzpage.js
data/tweaks/bug-page-mod.js
data/tweaks/viewSource.js
lib/libbugzilla.js
lib/main.js
package.json
Diffstat (limited to 'data/tweaks/viewSource.js')
-rw-r--r-- | data/tweaks/viewSource.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/tweaks/viewSource.js b/data/tweaks/viewSource.js index 81e6735..2415531 100644 --- a/data/tweaks/viewSource.js +++ b/data/tweaks/viewSource.js @@ -39,12 +39,12 @@ var reAttachmentType = /,\s+([^ )]*)[;)]/; function viewAttachmentSource(attachments) { attachments.forEach(function(att) { - if (att.length < 1) { + if (!att.id) { return; } - var typeName = att[2]; - var elem = att[4]; - var id = att[1]; + var typeName = att.mimeType; + var elem = att.element; + var id = att.id; var attachHref = elem.getAttribute("href"); if (typeName == "application/java-archive" |