Support » Plugin: Comments Like Dislike » Support for WP Ajaxify Comments

  • Resolved jackennils

    (@jackennilsen)


    Hello!

    I’m using your plugin together with WP Ajaxify Comments. Unfortunately I ran into an issue. After a comment is added via AJAX, the like/dislike buttons don’t work anymore until the page is refreshed manually.

    WP Ajaxify Comments offers the possibility to add custom callbacks when comments have been updated. See: http://wordpress.org/plugins/wp-ajaxify-comments/faq/

    Is there any chance you can make both plugins compatible? I think many users could profit as WP Ajaxify Comments is pretty popular.

    Thanks
    Nils

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Okay, I could fix it myself easily.

    In cld-frontend.js go to line 25:
    $('.cld-like-dislike-trigger').click(function () {
    Replace it with:
    $(document).on('click', '.cld-like-dislike-trigger', function() {

    That’s it. 🙂

    Plugin Author Happy Coders

    (@happy-coders)

    Hello Jackennils,

    Thank you for posting your solution.

    We will include this in our very next update soon.

    Regards WPHC

    Plugin Author Happy Coders

    (@happy-coders)

    Hello Jackennils,

    We have now replaced normal click event with on so that ajax comments also supports like dislike action. Please update your copy and let us know if you still need any adjustments.

    Regards WPHC

    Works, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Support for WP Ajaxify Comments’ is closed to new replies.