Permalink
Browse files

avoid saving document with unclickable "" title

  • Loading branch information...
1 parent c0202fd commit 0deb9ae7f4e4e977748720c042efd4214a54702b @natevw committed Dec 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 updates/content.js
View
@@ -11,7 +11,7 @@ function (doc, req) {
}
doc.last_modified = new Date().toISOString();
- doc.title = req.form.title;
+ doc.title = req.form.title || "<untitled>";
doc.content = JSON.parse(req.form.content);
var appURL = '/' + req.info.db_name + '/' + ddoc._id,

0 comments on commit 0deb9ae

Please sign in to comment.