Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3117 Rev 3118
Línea 285... Línea 285...
285
            }).done(function(response) {
285
            }).done(function(response) {
286
                NProgress.start();
286
                NProgress.start();
287
                if (response['success']) {
287
                if (response['success']) {
288
                    $.fn.showSuccess(response['data']);
288
                    $.fn.showSuccess(response['data']);
289
                    $('#main').hide();
289
                    $('#main').hide();
290
                    $('#interview').hide();
290
                    $('#interview').hide(); 
291
                    $('#vacancy_uuid').change();
291
                    gridTable.api().ajax.reload(null, false);
292
                } else {
292
                } else {
293
                    validator.resetForm();
293
                    validator.resetForm();
294
                    if (jQuery.type(response['data']) == 'string') {
294
                    if (jQuery.type(response['data']) == 'string') {
295
                        $.fn.showError(response['data']);
295
                        $.fn.showError(response['data']);
296
                    } else {
296
                    } else {
Línea 387... Línea 387...
387
                'method': 'post',
387
                'method': 'post',
388
                'url': $(this).data('url'),
388
                'url': $(this).data('url'),
389
            }).done(function (response) {
389
            }).done(function (response) {
390
                if (response['success']) {
390
                if (response['success']) {
391
                    $.fn.showSuccess(response['data']);
391
                    $.fn.showSuccess(response['data']);
392
                    $('#vacancy_uuid').change();
392
                    gridTable.api().ajax.reload(null, false);
393
                } else {
393
                } else {
394
                    $.fn.showError(response['data']);
394
                    $.fn.showError(response['data']);
395
                }
395
                }
396
            }).fail(function (jqXHR, textStatus, errorThrown) {
396
            }).fail(function (jqXHR, textStatus, errorThrown) {
397
                $.fn.showError(textStatus);
397
                $.fn.showError(textStatus);
Línea 437... Línea 437...
437
    $('button.btn-form-save-close').click(function(e) {
437
    $('button.btn-form-save-close').click(function(e) {
438
        e.preventDefault();
438
        e.preventDefault();
439
        $('#interview #form-continue').val('0')
439
        $('#interview #form-continue').val('0')
440
        $('#form-interview').submit();
440
        $('#form-interview').submit();
441
    });
441
    });
442
 
442
/*
443
    $('#vacancy_uuid').on('change', function () {
443
    $('#vacancy_uuid').on('change', function () {
444
        $('#candidate_uuid').html('');
444
        $('#candidate_uuid').html('');
Línea 445... Línea 445...
445
 
445
 
446
        $.ajax({
446
        $.ajax({
Línea 465... Línea 465...
465
 
465
 
Línea 466... Línea 466...
466
            $('#candidate_uuid').change();
466
            $('#candidate_uuid').change();
467
 
467
 
468
            $('#job-description').html($('#job-description-template').render(response.data));
468
            $('#job-description').html($('#job-description-template').render(response.data));
Línea 469... Línea 469...
469
        })
469
        })
Línea 470... Línea 470...
470
    });
470
    });*/
471
 
471