From 53cc2b746e800210382a335eacafe64b896e1b92 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 10 Jun 2011 14:17:15 +0200 Subject: Separate PCI ID components with colon not with comma. Conflicts: data/rhlib/rhbzpage.js --- data/rhlib/rhbzpage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data/rhlib') diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index abb5c19..d65ad8d 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -233,8 +233,9 @@ function chipsetMagic (interestingLineArr) { // If we have Chipset line, we should parse it as well and // add to the button if (interestingLineArr.length > 1) { - var PCIid = (interestingPCIID[0] + "," + interestingPCIID[1]). + var PCIid = (interestingPCIID[0] + ":" + interestingPCIID[1]). toUpperCase(); + console.myDebug("PCIid = " + PCIid); // Nvidia driver provides good code in the Chipset line if (interestingPCIID[0].toLowerCase() == "10de") { cardStr = interestingLineArr[1][2]. @@ -244,7 +245,7 @@ function chipsetMagic (interestingLineArr) { try { cardStr = constantData.chipNames[PCIid][0]; } catch (e if e instanceof TypeError) { - PCIid = PCIid.toLowerCase().replace(",",":"); + PCIid = PCIid.toLowerCase(); cardStr = null; alert("PCI ID " + PCIid + " is not known!"); self.postMessage(new Message("SetClipboard", PCIid.toString())); -- cgit