Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3007 Rev 3009
Línea 156... Línea 156...
156
                        'method': 'post',
156
                        'method': 'post',
157
                        'url': action,
157
                        'url': action,
158
                    }).done(function(response) {
158
                    }).done(function(response) {
159
                        if (response['success']) {
159
                        if (response['success']) {
160
                            $.fn.showSuccess(response['data']);
160
                            $.fn.showSuccess(response['data']);
161
                            tableForm.fnDraw();
161
                            tableForm.api().ajax.reload(null, false);
162
                        } else {
162
                        } else {
163
                            $.fn.showError(response['data']);
163
                            $.fn.showError(response['data']);
164
                        }
164
                        }
165
                    }).fail(function(jqXHR, textStatus, errorThrown) {
165
                    }).fail(function(jqXHR, textStatus, errorThrown) {
166
                        $.fn.showError(textStatus);
166
                        $.fn.showError(textStatus);
Línea 430... Línea 430...
430
                    } else {
430
                    } else {
431
                        $('#row-form').hide();
431
                        $('#row-form').hide();
432
                        $('#row-lists').show();
432
                        $('#row-lists').show();
433
                        /*---------- Reset Form -------- */
433
                        /*---------- Reset Form -------- */
434
                        $('#form-main')[0].reset();
434
                        $('#form-main')[0].reset();
435
                        tableForm.fnDraw();
435
                        tableForm.api().ajax.reload(null, false);
436
                    }
436
                    }
437
                    return;
437
                    return;
438
                } else {
438
                } else {
439
                    $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
439
                    $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
440
                    return;
440
                    return;
Línea 463... Línea 463...
463
     * Clicked refresh button
463
     * Clicked refresh button
464
     */
464
     */
465
    $('body').on('click', 'button.btn-refresh', function (e) {
465
    $('body').on('click', 'button.btn-refresh', function (e) {
466
        e.preventDefault();
466
        e.preventDefault();
467
        tableForm.api().ajax.reload(null, false);
467
        tableForm.api().ajax.reload(null, false);
468
        
468
 
469
    });
469
    });
470
    /**
470
    /**
471
     * Initialize select Jobdescription
471
     * Initialize select Jobdescription
472
     */
472
     */
473
    $('#job_description_id').select2({
473
    $('#job_description_id').select2({