Support » Plugin: Table of Contents Plus » smooth scroll is binding click for all links in body

  • Hi,

    The Smooth Scroll option is binding the click event for all links in entire document.
    This is causing some unwanted behaviors in pages without TOCs.

    I have detected the reason and solved this problem changing the front.js,
    in line 67:
    switch the code:
    $('body a').click(function(event) {
    to
    $('#toc_container a').click(function(event) {

    Could you please apply this solution (or any other) and release a new version?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 14030592

    (@anonymized-14030592)

    Hi,

    this solved my problems with tabs I have on some sites. So thanks for sharing!

    But instead of
    $('#toc_container a').click(function(event) {
    I am using
    $('#toc_container a, .toc_widget a').click(function(event) {
    because of the widget of toc+.

    And I changed the same lines in the front.min.js

    I also have this same problem and would love to see a solution added to a future release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘smooth scroll is binding click for all links in body’ is closed to new replies.