Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16918 | Rev 16943 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16918 Rev 16929
Línea 18... Línea 18...
18
 
18
 
19
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
19
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 20... Línea -...
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
-
 
21
 
-
 
22
 
-
 
-
 
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
-
 
21
 
-
 
22
 
Línea 23... Línea 23...
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
23
 
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
24
 
Línea 25... Línea 25...
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
25
 
Línea 596... Línea 596...
596
        }).fail(function(jqXHR, textStatus, errorThrown) {
596
        }).fail(function(jqXHR, textStatus, errorThrown) {
597
            $.fn.showError(textStatus);
597
            $.fn.showError(textStatus);
598
        });
598
        });
599
    });
599
    });
Línea 600... Línea -...
600
 
-
 
601
    $.validator.setDefaults({
-
 
602
        debug: true,
-
 
603
        highlight: function(element) {
-
 
604
            $(element).addClass('is-invalid');
-
 
605
        },
-
 
606
        unhighlight: function(element) {
-
 
607
            $(element).removeClass('is-invalid');
-
 
608
        },
-
 
609
        errorElement: 'span',
-
 
610
        errorClass: 'error invalid-feedback',
-
 
611
        errorPlacement: function(error, element) {
-
 
612
            if (element.parent('.form-group').length) {
-
 
613
                error.insertAfter(element);
-
 
614
            } else if (element.parent('.toggle').length) {
-
 
615
                error.insertAfter(element.parent().parent());
-
 
616
            } else {
-
 
617
                error.insertAfter(element.parent());
-
 
618
            }
-
 
619
        }
-
 
Línea 620... Línea 600...
620
    });
600
 
621
 
601
 
622
    var validatorForm = $('#form-main').validate({
602
    var validatorForm = $('#form-main').validate({
623
        debug: true,
603
        debug: true,
Línea 635... Línea 615...
635
            },
615
            },
636
            'status': {
616
            'status': {
637
                required: false,
617
                required: false,
638
            },
618
            },
639
        },
619
        },
640
        highlight: function(element) {
-
 
641
            $(element).closest('.form-group').addClass('has-error');
-
 
642
        },
-
 
643
        unhighlight: function(element) {
-
 
644
            $(element).closest('.form-group').removeClass('has-error');
-
 
645
        },
620
 
646
        errorPlacement: function(error, element) {
-
 
647
            if (element.attr("data-error-container")) {
-
 
648
                error.appendTo(element.attr("data-error-container"));
-
 
649
            } else {
-
 
650
                error.insertAfter(element);
-
 
651
            }
-
 
652
        },
-
 
653
        submitHandler: function(form) {
621
        submitHandler: function(form) {
Línea 654... Línea 622...
654
 
622
 
655
            if(!objFormGenerator.isValid()) {
623
            if(!objFormGenerator.isValid()) {
656
                return false;
624
                return false;