From dfde7d9860de703ba0721059ff4b795fcad07340 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 19 Jul 2010 11:08:04 +0200 Subject: Yet another fix for the chip magic. - all constant data moved to this.constantData, so that they are available everywhere. --- lib/rhbzpage.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'lib/rhbzpage.js') diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 84ca094..eceef2b 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -111,7 +111,13 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { this.addCheckXorgLogLink(); // TODO Get compiz bugs as well - if (config.PCI_ID_Array && + var keys = ""; + for (var key in config) { + keys += key + ", "; + } + console.log("keys = " + keys); + + if (this.constantData.PCI_ID_Array && (this.maintCCAddr == "xgl-maint@redhat.com")) { // Add find chip magic button var whiteboard_string = this.doc.getElementById("status_whiteboard").value; @@ -456,7 +462,8 @@ RHBugzillaPage.prototype.fillInWhiteBoard = function(iLine, driverStr) { var that = this; function groupIDs(manStr, cardStrID) { - var outStr = util.filterByRegexp(config.chipIDsGroupings, manStr + "," + cardStrID); + var outStr = util.filterByRegexp(that.constantData.chipIDsGroupings, + manStr + "," + cardStrID); if (outStr.length === 0) { outStr = "UNGROUPED_" + manStr + "/" + cardStrID; } @@ -472,7 +479,7 @@ RHBugzillaPage.prototype.fillInWhiteBoard = function(iLine, driverStr) { */ function checkChipStringFromID(manufacturerNo, cardNo) { var soughtID = (manufacturerNo + "," + cardNo).toUpperCase(); - var outList = config.PCI_ID_Array[soughtID]; + var outList = that.constantData.PCI_ID_Array[soughtID]; if (outList) { return outList; } else { -- cgit