mirror of
https://github.com/neocities/neocities.git
synced 2025-08-01 23:31:52 +02:00
more work on comments for events
This commit is contained in:
parent
eba4a6e3f5
commit
b96730b83f
17 changed files with 2298 additions and 43 deletions
|
@ -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+')')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue