Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16918 Rev 16929
Línea 22... Línea 22...
22
 
22
 
23
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
23
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 24... Línea -...
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
-
 
25
 
-
 
26
 
-
 
-
 
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
-
 
25
 
-
 
26
 
Línea 27... Línea 27...
27
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
27
 
28
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
28
 
Línea 29... Línea 29...
29
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
29
 
Línea 77... Línea 77...
77
jQuery(document).ready(function($) {
77
jQuery(document).ready(function($) {
Línea 78... Línea 78...
78
 
78
 
79
    var allowDelete   = $allowDelete  ;
79
    var allowDelete   = $allowDelete  ;
Línea 80... Línea -...
80
    var allowView   = $allowView  ;
-
 
81
    
-
 
82
    $.validator.setDefaults({
-
 
83
            debug: true,
-
 
84
            highlight: function(element) {
-
 
85
                $(element).addClass('is-invalid');
-
 
86
            },
-
 
87
            unhighlight: function(element) {
-
 
88
                $(element).removeClass('is-invalid');
-
 
89
            },
-
 
90
            errorElement: 'span',
-
 
91
            errorClass: 'error invalid-feedback',
-
 
92
            errorPlacement: function(error, element) {
-
 
93
                if(element.parent('.form-group').length) {
-
 
94
                    error.insertAfter(element);
-
 
95
                } else if(element.parent('.toggle').length) {
-
 
96
                    error.insertAfter(element.parent().parent());
-
 
97
                } else {
-
 
98
                    error.insertAfter(element.parent());
-
 
99
                }
-
 
100
            }
-
 
101
        });
-
 
102
        
-
 
103
        
-
 
104
        $.fn.showFormErrorValidator = function(fieldname, errors) {
-
 
105
            var field = $(fieldname);
-
 
106
            if(field) {
-
 
107
                $(field).addClass('is-invalid');
-
 
108
                
-
 
109
                
-
 
110
                var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
-
 
111
                if(field.parent('.form-group').length) {
-
 
112
                    error.insertAfter(field);
-
 
113
                } else  if(field.parent('.toggle').length) {
-
 
114
                    error.insertAfter(field.parent().parent());
-
 
115
                } else {
-
 
116
                    error.insertAfter(field.parent());
-
 
117
                }
-
 
118
            }
-
 
119
        };
-
 
120
        
-
 
121
        
80
    var allowView   = $allowView  ;
122
  
81
    
123
        
82
 
124
    var gridTable = $('#gridTable').dataTable({
83
    var gridTable = $('#gridTable').dataTable({
125
        'processing': true,
84
        'processing': true,
126
        'serverSide': true,
85
        'serverSide': true,