Skip to content

minor jQuery issue - scrollTop #18

@manueltimita

Description

@manueltimita

This bit of code:

$('html, body').animate({  
  scrollTop: $("#kAdminActionCenter").offset().top 
}, 700);  

...throws an error: "Uncaught TypeError: Cannot read property 'top' of undefined". I guess it is because the form template is not yet rendered when the selector #kAdminActionCenter is being passed to jQuery.

Anyway, excellent package! The first I can properly integrate in my app. No unnecessary bloat, does everything you expect it to do, and no dependency on a specific router (which would be overkill anyway when all you want to do is edit/delete documents).

Manuel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions