diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-19 11:08:04 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-19 11:08:04 +0200 |
commit | dfde7d9860de703ba0721059ff4b795fcad07340 (patch) | |
tree | 02cbd5e885888b587375a576d7bd77c77453e17e /lib/rhbzpage.js | |
parent | 3692a4dc4dd3b83fa1bda6f002aeb86c0df2cc5f (diff) | |
download | bugzilla-triage-dfde7d9860de703ba0721059ff4b795fcad07340.tar.gz |
Yet another fix for the chip magic.
- all constant data moved to this.constantData, so that they are
available everywhere.
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 13 |
1 files changed, 10 insertions, 3 deletions
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 { |