Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16927 Rev 16929
Línea 20... Línea 20...
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
Línea 21... Línea 21...
21
 
21
 
Línea 22... Línea -...
22
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
-
 
23
 
-
 
24
 
-
 
-
 
22
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
-
 
23
 
-
 
24
 
Línea 25... Línea 25...
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
25
 
26
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
26
 
Línea 27... Línea 27...
27
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
27
 
Línea 43... Línea 43...
43
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));
43
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));
44
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/locales/es.js'));
44
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/locales/es.js'));
45
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/fas/theme.js'));
45
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/fas/theme.js'));
46
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.js'));
46
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.js'));
Línea 47... Línea -...
47
 
-
 
48
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
-
 
49
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
-
 
-
 
47
 
-
 
48
 
-
 
49
 
Línea 50... Línea 50...
50
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
50
 
51
 
51
 
Línea 90... Línea 90...
90
            value = $.trim($.fn.stripHtml(value));
90
            value = $.trim($.fn.stripHtml(value));
91
            return value.length > 0;
91
            return value.length > 0;
92
        }, 'ERROR_REQUIRED');
92
        }, 'ERROR_REQUIRED');
Línea 93... Línea -...
93
 
-
 
94
 
-
 
95
        $.validator.setDefaults({
-
 
96
            debug: true,
-
 
97
            highlight: function(element) {
-
 
98
                $(element).addClass('is-invalid');
-
 
99
            },
-
 
100
            unhighlight: function(element) {
-
 
101
                $(element).removeClass('is-invalid');
-
 
102
            },
-
 
103
            errorElement: 'span',
-
 
104
            errorClass: 'error invalid-feedback',
-
 
105
            errorPlacement: function(error, element) {
-
 
106
                if(element.parent('.form-group').length) {
-
 
107
                    error.insertAfter(element);
-
 
108
                } else if(element.parent('.toggle').length) {
-
 
109
                    error.insertAfter(element.parent().parent());
-
 
110
                } else {
-
 
111
                    error.insertAfter(element.parent());
-
 
112
                }
-
 
113
            }
-
 
114
        });
-
 
115
    
-
 
116
    
-
 
117
        $.fn.showFormErrorValidator = function(fieldname, errors) {
-
 
118
            var field = $(fieldname);
-
 
119
            if(field) {
-
 
120
                $(field).addClass('is-invalid');
-
 
121
    
-
 
122
 
-
 
123
                var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
-
 
124
                if(field.parent('.form-group').length) {
-
 
125
                    error.insertAfter(field);
-
 
126
                } else  if(field.parent('.toggle').length) {
-
 
127
                    error.insertAfter(field.parent().parent());
-
 
128
                } else {
-
 
129
                    error.insertAfter(field.parent());
-
 
130
                }
-
 
131
            }
-
 
132
        };
93
 
133
 
94
 
Línea 134... Línea 95...
134
        var allowEdit   = $allowEdit;
95
        var allowEdit   = $allowEdit;
135
        var allowDelete = $allowDelete;
96
        var allowDelete = $allowDelete;