aboutsummaryrefslogtreecommitdiffstats
path: root/data/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-02-22 14:28:27 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-02-22 14:28:27 +0100
commit8f0723afe4fd2bbffaeded79f6d0896ab817707e (patch)
tree5bbd5d39eaeb2fa1932a22250c8162f836dec2cf /data/rhbzpage.js
parentfd3fe0f06944d4462e68c7ea8887e7b3b1f6bc04 (diff)
downloadbugzilla-triage-8f0723afe4fd2bbffaeded79f6d0896ab817707e.tar.gz
Add protection against superfluous running of fillIn magic
Diffstat (limited to 'data/rhbzpage.js')
-rw-r--r--data/rhbzpage.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/rhbzpage.js b/data/rhbzpage.js
index b45d9e2..026e7ac 100644
--- a/data/rhbzpage.js
+++ b/data/rhbzpage.js
@@ -832,6 +832,7 @@ function parseBacktrace (ret) {
function RHBZinit() {
// inheritance ... call superobject's constructor
var AbrtRE = new RegExp("^\\s*\\[abrt\\]");
+ var FillMagicDoneRE = new RegExp("^\\s*\\[[0-9a-zA-Z]*\\]");
var btSnippet = "";
var signaturesCounter = 0;
@@ -873,10 +874,10 @@ function RHBZinit() {
getComponent())[0]; // filterByRegexp returns array, not string
}
- // fillInChipMagic needs to be fixed first, but it can wait.
// TODO Get compiz bugs as well
- if ((constantData.chipNames !== undefined) &&
- (XorgLogAttList[0] !== undefined) &&
+ if ((constantData.chipNames) &&
+ (XorgLogAttList[0]) &&
+ (!FillMagicDoneRE.test(getSummary())) &&
(maintCCAddr === "xgl-maint@redhat.com")) {
// Add find chip magic button
var whiteboard_string = document.getElementById("status_whiteboard").value;