aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bzpage.js
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/bzpage.js
parent4eb99a9ead80166c27c49437b686ca6f2442da2d (diff)
downloadbugzilla-triage-40a7136e0946f1f9d938fd65e0f416cd3455413f.tar.gz
Add unknown PCI ID to the clipboard.
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r--data/lib/bzpage.js4
1 files changed, 4 insertions, 0 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;