Add scripts to create myops-getqueryview:
[myops.git] / web / query / evently / profile / profileReady / selectors / form / submit.js
1 function() {
2   var f = $(this), app = $$(this).app;
3   var newComment = {
4     type : "comment",
5     post_id : app.post_id,
6     format : "markdown",
7     comment : $("[name=comment]", f).val(),
8     commenter : $$("#profile").profile,
9     created_at : new Date()
10   };
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>');
14     }
15   });
16   
17   return false;
18 };