FriendsOfSymfony / FOSCommentBundle

Threaded comments for Symfony
http://friendsofsymfony.github.com/
MIT License
462 stars 230 forks source link

How does fos_comment_new_comment work? #636

Closed dhensen closed 6 years ago

dhensen commented 6 years ago

I have tried a lot of ways to add a handler for fos_comment_new_comment , can anybody supply me with an example?

XWB commented 6 years ago

The following piece of code should work:

$('#fos_comment_thread').on('fos_comment_new_comment', function() {
    console.log(this);
});