diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-02-22 14:28:27 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-02-22 14:28:27 +0100 |
commit | 8f0723afe4fd2bbffaeded79f6d0896ab817707e (patch) | |
tree | 5bbd5d39eaeb2fa1932a22250c8162f836dec2cf /data/rhbzpage.js | |
parent | fd3fe0f06944d4462e68c7ea8887e7b3b1f6bc04 (diff) | |
download | bugzilla-triage-8f0723afe4fd2bbffaeded79f6d0896ab817707e.tar.gz |
Add protection against superfluous running of fillIn magic
Diffstat (limited to 'data/rhbzpage.js')
-rw-r--r-- | data/rhbzpage.js | 7 |
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; |