aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bzpage.js
diff options
context:
space:
mode:
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;