diff options
author | Ehsan Akhgari <ehsan@mozilla.com> | 2010-10-28 13:27:24 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan@mozilla.com> | 2010-10-28 13:27:24 -0400 |
commit | e6d9394bea821413c38842db099940ccf880e405 (patch) | |
tree | 5c39170d64bc43b47ab8382a1efdfd22148cff84 /lib/main.js | |
parent | 91839dc1f1c045b49b6f37e0e925a2b400d0fc9c (diff) | |
download | bugzilla-triage-e6d9394bea821413c38842db099940ccf880e405.tar.gz |
Show the Review link for process_bug.cgi pages
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/main.js b/lib/main.js index 79b4933..c1d09bd 100644 --- a/lib/main.js +++ b/lib/main.js @@ -520,17 +520,13 @@ AttachmentFlag.prototype = { }; var reAttachmentDiff = /attachment\.cgi\?id=(\d+)&action=diff$/i; -var reBugIdLocation = /\/show_bug\.cgi\?id=(\d+)/; var reviewBoardUrlBase = "http://reviews.visophyte.org/"; /** * Whenever we find a patch with a diff, insert an additional link to asuth's * review board magic. */ function attachmentDiffLinkify(doc) { - var bugMatch = reBugIdLocation.exec(doc.location.href); - if (!bugMatch) - return; - var bug_id = bugMatch[1]; + var bug_id = getBugNumber(doc); var table = doc.getElementById("attachment_table"); if (!table) |