From 8f0723afe4fd2bbffaeded79f6d0896ab817707e Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 22 Feb 2011 14:28:27 +0100 Subject: Add protection against superfluous running of fillIn magic --- data/rhbzpage.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'data/rhbzpage.js') 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; -- cgit