https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25680

--- Comment #1 from Timothy Alexis Vass <timothy_alexis.v...@ub.lu.se> ---
$("#entryform").validate({
        focusInvalid: false,
        invalidHandler: function(form, validator) {
            var errors = validator.numberOfInvalids();
            if (errors) {                    
                window.scrollTo(0, 0);
                validator.errorList[0].element.focus();
                window.scrollBy(0,$(window).height()/1.618);
            }
        },

This will set the element at the "golden section" in the window.
Can anyone think of a simpler way to do it?

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to