WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Link Library] When changing data with Ajax, it jumps to top of page (4 posts)

  1. digigirl
    Member
    Posted 4 years ago #

    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/

  2. Yannick Lefebvre
    Member
    Posted 4 years ago #

    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

  3. digigirl
    Member
    Posted 4 years ago #

    Yep! That fixed it perfectly.

    Thanks again for your quick and helpful responses.

    Donation coming your way shortly!

  4. Yannick Lefebvre
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic