diff options
Diffstat (limited to 'data/tweaks')
-rw-r--r-- | data/tweaks/bug-page-mod.js | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js index ece4f36..f5d154e 100644 --- a/data/tweaks/bug-page-mod.js +++ b/data/tweaks/bug-page-mod.js @@ -207,12 +207,39 @@ function tweakBugzilla(things, cData) { tbplbotSpamCollapser(); } - // =================================================== function processHistory(history) { // FIXME Remove remaining code to special function ... callback // preprocessDuplicateMarkers(document, iframe.contentDocument); + /* + * This is an example of the history we get: { "version": "1.1", "result": { + * "bugs": [ { "history": [ { "when": "2011-04-04T00:19:04Z", "who": + * "cebbert@redhat.com", "changes": [ { "removed": "", "added": + * "xgl-maint@redhat.com", "field_name": "cc", "field": "CC" }, { "removed": + * "kernel", "added": "xorg-x11-drv-ati", "field_name": "component", "field": + * "Component" }, { "removed": "kernel-maint@redhat.com", "added": + * "xgl-maint@redhat.com", "field_name": "assigned_to", "field": "AssignedTo" } ] }, { + * "when": "2011-04-12T22:48:22Z", "who": "mcepl@redhat.com", "changes": [ { + * "attachment_id": 488889, "removed": "application/octet-stream", "added": + * "text/plain", "field_name": "attachments.mimetype", "field": "Attachment + * mime type" } ] }, { "when": "2011-04-13T17:07:04Z", "who": + * "mcepl@redhat.com", "changes": [ { "removed": "", "added": + * "needinfo?(suckfish@ihug.co.nz)", "field_name": "flagtypes.name", "field": + * "Flags" } ] }, { "when": "2011-04-21T12:17:33Z", "who": "mcepl@redhat.com", + * "changes": [ { "removed": "xgl-maint@redhat.com", "added": + * "jglisse@redhat.com", "field_name": "assigned_to", "field": "AssignedTo" } ] }, { + * "when": "2011-04-28T22:53:58Z", "who": "mcepl@redhat.com", "changes": [ { + * "attachment_id": 488889, "removed": "text/plain", "added": + * "application/octet-stream", "field_name": "attachments.mimetype", "field": + * "Attachment mime type" } ] }, { "when": "2011-04-28T22:59:18Z", "who": + * "mcepl@redhat.com", "changes": [ { "attachment_id": 488889, "removed": + * "application/octet-stream", "added": "text/plain", "field_name": + * "attachments.mimetype", "field": "Attachment mime type" } ] } ], "id": + * 692250, "alias": [ + * ] } ], "faults": [ + * ] } } + */ // UserNameCache var userNameCache = {}; function getUserName(email) { @@ -364,7 +391,9 @@ return ; // FIXME just to get rid of this unfinished and unanalyzed function commentHead.insertBefore(anchor, commentHead.firstChild); } } else { - userPrefix += attachmentFlagAnchors.map(function(name) '<a name="' + name + '"></a>').join(""); + userPrefix += attachmentFlagAnchors.map(function(name) { + return '<a name="' + name + '"></a>'; + }).join(""); } // XXX just adding/removing sometbody from CC list @@ -413,7 +442,9 @@ return ; // FIXME just to get rid of this unfinished and unanalyzed function commentHead.insertBefore(anchor, commentHead.firstChild); } } else { - prefix += attachmentFlagAnchors.map(function(name) '<a name="' + name + '"></a>').join(""); + prefix += attachmentFlagAnchors.map(function(name) { + return '<a name="' + name + '"></a>'; + }).join(""); } // END OF THE SAME STUFF FOR NON-FIRST ITEMS |