diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 23:34:55 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 23:34:55 +0200 |
commit | 968a1a63f8e625994b40b7d2af2d22940285c63c (patch) | |
tree | 4e6dc4d0fd51068ccd57be9ccb2bb5e3e7de8528 /data/tweaks | |
parent | ffa6d74ddbf28c7fb7be1ad473847807d0301eac (diff) | |
download | bugzilla-triage-968a1a63f8e625994b40b7d2af2d22940285c63c.tar.gz |
Move attachments and comments functions into four separate objects.
Specifically there are objects AttachList, Attachment, Comment,
and CommentList.
Diffstat (limited to 'data/tweaks')
-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..fdf92d3 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.name; + var elem = att.element; + var id = att.id; var attachHref = elem.getAttribute("href"); if (typeName == "application/java-archive" |