aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan@mozilla.com>2010-10-28 13:27:24 -0400
committerEhsan Akhgari <ehsan@mozilla.com>2010-10-28 13:27:24 -0400
commite6d9394bea821413c38842db099940ccf880e405 (patch)
tree5c39170d64bc43b47ab8382a1efdfd22148cff84 /lib/main.js
parent91839dc1f1c045b49b6f37e0e925a2b400d0fc9c (diff)
downloadbugzilla-triage-e6d9394bea821413c38842db099940ccf880e405.tar.gz
Show the Review link for process_bug.cgi pages
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js6
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)