editing for profile comments

This commit is contained in:
Kyle Drake 2014-05-02 15:08:12 -07:00
parent f681e6c704
commit 6277a94a5b
12 changed files with 80 additions and 13 deletions

View file

@ -9,7 +9,7 @@ Comment.prototype.create = function(form) {
var comment = form.find('[name="comment"]').val()
form.remove()
$.post('/event/'+this.eventId+'/comment', {csrf_token: this.csrfToken, comment: comment}, function(res) {
$.post('/event/'+this.eventId+'/comment', {csrf_token: this.csrfToken, message: comment}, function(res) {
console.log(res)
})