Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 2529 Rev 2531
Línea 206... Línea 206...
206
        debug: true,
206
        debug: true,
207
        onclick: false,
207
        onclick: false,
208
        onkeyup: false,
208
        onkeyup: false,
209
        ignore: [],
209
        ignore: [],
210
        rules: {
210
        rules: {
211
            'text': {
211
            'comment': {
212
                required: true,
-
 
213
                maxlength: 64,
-
 
214
            },
-
 
215
            'status': {
-
 
216
                required: false,
212
                required: false,
217
            },
213
            },
-
 
214
            'points': {
-
 
215
                required: true,
-
 
216
            },
Línea 218... Línea 217...
218
 
217
 
219
        },
218
        },
220
        submitHandler: function(form) {
219
        submitHandler: function(form) {
221
            $.ajax({
220
            $.ajax({
Línea 241... Línea 240...
241
                    validator.resetForm();
240
                    validator.resetForm();
242
                    if (jQuery.type(response['data']) == 'string') {
241
                    if (jQuery.type(response['data']) == 'string') {
243
                        $.fn.showError(response['data']);
242
                        $.fn.showError(response['data']);
244
                    } else {
243
                    } else {
245
                        $.each(response['data'], function(fieldname, errors) {
244
                        $.each(response['data'], function(fieldname, errors) {
246
                            $.fn.showFormErrorValidator('#form #' + fieldname, errors);
245
                            $.fn.showFormErrorValidator('#interview #' + fieldname, errors);
247
                        });
246
                        });
248
                    }
247
                    }
249
                }
248
                }
250
            }).fail(function(jqXHR, textStatus, errorThrown) {
249
            }).fail(function(jqXHR, textStatus, errorThrown) {
251
                $.fn.showError(textStatus);
250
                $.fn.showError(textStatus);