2 var f = $(this), app = $$(this).app;
7 comment : $("[name=comment]", f).val(),
8 commenter : $$("#profile").profile,
9 created_at : new Date()
11 app.db.saveDoc(newComment, {
12 success : function(resp) {
13 $("#new-comment").html('<h2>Success! Your comment has posted.</h2><p>Refresh the page to see it.</p>');