View | Details | Raw Unified | Return to bug 25680
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-1 / +11 lines)
Lines 326-331 $(document).ready(function(){ Link Here
326
        jQuery.validator.messages.phone);
326
        jQuery.validator.messages.phone);
327
327
328
    $("#entryform").validate({
328
    $("#entryform").validate({
329
        focusInvalid: false,
330
        invalidHandler: function(form, validator) {
331
            var errors = validator.numberOfInvalids();
332
            if(errors) {
333
                window.scrollTo(0, 0);
334
                validator.errorList[0].element.focus();
335
                if($(validator.errorList[0].element).offset().top > $(window).height()) {
336
                    window.scrollBy(0,$(window).height()/1.618);
337
                }
338
            }
339
        },
329
        rules: {
340
        rules: {
330
            email: {
341
            email: {
331
                email: true
342
                email: true
332
- 

Return to bug 25680