summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/wwwsqldesigner.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js
index 44c8484..1c4d046 100644
--- a/js/wwwsqldesigner.js
+++ b/js/wwwsqldesigner.js
@@ -217,7 +217,8 @@ SQL.Row.prototype.buildContent = function() {
SQL.Row.prototype.changeComment = function(e) {
var c = prompt(_("commenttext"),this.data.comment);
- this.data.comment = c || "";
+ if (c === null) { return; }
+ this.data.comment = c;
this.dom.comment.innerHTML = this.data.comment;
}