Support » Plugins » [Plugin: Link Library] When changing data with Ajax, it jumps to top of page

  • Resolved digigirl

    (@digigirl)


    This is a minor problem, just kind of annoying.

    When you click on the category using the “show one category at a time” ajax setting, it bumps you back up to the top of the page. This means that the user has to scroll back down to the library listing each time they choose a category.

    Is there a way to fix this other than rearranging the page so that the library is at the top?

    You can see this here (same page as for the last problem you just fixed – thanks very much for the quick response!) – http://chivalrytoday.com/wp/resources

    http://wordpress.org/extend/plugins/link-library/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Try changing line 1144 inside of link-library.php from:

    $cattext = "<a href='#' onClick=\"showLinkCat('" . $catname->term_id. "', '" . $settings . "');\" >";

    to:

    $cattext = "<a href='#' onClick=\"showLinkCat('" . $catname->term_id. "', '" . $settings . "');return false;\" >";

    I tested it on my site and it works fine. I will roll that change into my next update if you can confirm that it also does the trick on your end.

    If you are not comfortable making that change, I will test the solution some more tomorrow night and issue an official update to the plugin.

    Cheers,

    Yannick

    Thread Starter digigirl

    (@digigirl)

    Yep! That fixed it perfectly.

    Thanks again for your quick and helpful responses.

    Donation coming your way shortly!

    Thanks for the quick feedback and the donation. I always like to see how people use my plugin and how I can help them in their web site designs.

    One small favor, could you please mark the issue as resolved? I always like when other potential users see that issues are getting closed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Link Library] When changing data with Ajax, it jumps to top of page’ is closed to new replies.