aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/js/bug-page-mod.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/data/js/bug-page-mod.js b/data/js/bug-page-mod.js
index f800b0a..fcddcbd 100644
--- a/data/js/bug-page-mod.js
+++ b/data/js/bug-page-mod.js
@@ -52,7 +52,7 @@ function tweakBugzilla(d) {
// After POSTing, redirect with a GET back to the same bug
if (/\/(process_bug|attachment).cgi$/.test(d.location.href)) {
- var bug = getBugId(d);
+ var bug = getBugNumber(d);
if (bug) {
d.body.innerHTML = "Changes submitted; reloading bug " + bug;
var url = d.location.href;
@@ -443,15 +443,6 @@ function transformType(str, doc, old, new_) {
return str;
}
-function getBugId(d) {
- var classes = d.body.classList;
- for (var i = 0; i < classes.length; i++) {
- var m = /^bz_bug_(\d+)$/.exec(classes[i]);
- return m[1];
- }
- return undefined;
-}
-
// new is a keyword, which makes this function uglier than I'd like
function formatTransition(old, new_, type, doc, histDoc) {
if (old.length) {