aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-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;