aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-02 13:37:39 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-02 13:38:52 +0100
commit40a7136e0946f1f9d938fd65e0f416cd3455413f (patch)
tree27abaa6e91f4519196fce49b7d5922aa155ebf48 /data/lib
parent4eb99a9ead80166c27c49437b686ca6f2442da2d (diff)
downloadbugzilla-triage-40a7136e0946f1f9d938fd65e0f416cd3455413f.tar.gz
Add unknown PCI ID to the clipboard.
Diffstat (limited to 'data/lib')
-rw-r--r--data/lib/bzpage.js4
-rw-r--r--data/lib/rhbzpage.js4
2 files changed, 7 insertions, 1 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index e8b2b95..aa81370 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -765,6 +765,7 @@ function addLogRecord() {
var comment = window.prompt(
"Enter comments for this comment");
if (comment) {
+ comment = comment.trim();
if (comment.length > 0) {
comment = comment.trim();
rec.comment = comment;
@@ -774,7 +775,10 @@ function addLogRecord() {
rec.key = dateStr + "+" +
urlStr + "+" + bugNo;
postMessage(new Message("AddLogRecord", rec));
+ } else {
+ console.log("Empty string!");
}
+ console.log("addLogRecord : rec = " + rec.toSource());
return rec;
}
return null;
diff --git a/data/lib/rhbzpage.js b/data/lib/rhbzpage.js
index 8d52174..bca0901 100644
--- a/data/lib/rhbzpage.js
+++ b/data/lib/rhbzpage.js
@@ -574,6 +574,8 @@ function fillInWhiteBoard(PCIidArrObj) {
try {
cardName = constantData.chipNames[PCIid][0];
} catch (e if e instanceof TypeError) {
+ PCIid = PCIid.toLowerCase().replace(",",":");
+ postMessage(new Message("SetClipboard", PCIid.toString()));
alert("PCI ID " + PCIid + " is not known!");
return ; // early termination
} catch (e) {
@@ -868,7 +870,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 FillMagicDoneRE = new RegExp("^\\s*\\[[0-9a-zA-Z_]*\\]");
var btSnippet = "";
var signaturesCounter = 0;