more work on comments for events

This commit is contained in:
Kyle Drake 2014-05-01 19:20:34 -07:00
parent eba4a6e3f5
commit b96730b83f
17 changed files with 2298 additions and 43 deletions

View file

@ -5,13 +5,8 @@ var Like = function(eventId, csrfToken) {
}
Like.prototype.toggleLike = function() {
console.log('herp?')
var self = this
$.post('/event/'+this.eventId+'/toggle_like', {csrf_token: this.csrfToken}, function(res) {
console.log(res)
console.log(self.link.text('butts'))
if(res.result == 'liked')
self.link.text('Unlike ('+res.event_like_count+')')