Support » Plugin: WP Ajaxify Comments » Works Great with a Modified Twenty Twelve Theme

  • I changed my mind. I’m giving this plugin 4 stars instead of 5.

    This plugin works great for nested comments.

    However, it disables other jQuery codes on the page.

    At the bottom of the page, I have a simple button that makes the page scroll smoothly to the top, using jQuery.

    Upon page load, the button works fine. However, after I post a comment and the comments-list is updated via ajax, my button no longer works. I’ve tried using the noConflict wrapper, but my button still won’t work after any comment is posted via ajax using WP-Ajaxify-Comments.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author janjonas

    (@janjonas)

    Please see my comment here: http:wordpress.org/support/topic/other-jquery-code-not-working-after-comment-is-posted#post-5459925. IMHO this is not a problem that is caused the plugin…

    You’re correct, Janjonas. It’s just the way the plugin, AJAX and JS/JQuery works. The new dom element is added/reloaded and JQuery listeners for inside the comments area are no longer re-bound. This issue can be solved by binding the listener to the comments container or parent div using .on() to listen for events that bubble from inside the comments area. Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Works Great with a Modified Twenty Twelve Theme’ is closed to new replies.