Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3535 Rev 3538
Línea 447... Línea 447...
447
        $("#content").show();
447
        $("#content").show();
448
        $("#main").hide();
448
        $("#main").hide();
449
        $('#form-interview').submit();
449
        $('#form-interview').submit();
450
    });
450
    });
Línea 451... Línea 451...
451
 
451
 
452
    $('#vacancy_uuid').on('change', function (event) {
452
    // $('#vacancy_uuid').on('change', function (event) {
Línea 453... Línea 453...
453
        $('#candidate_uuid').html('');
453
    //     $('#candidate_uuid').html('');
Línea 454... Línea 454...
454
 
454
 
Línea 455... Línea 455...
455
        var uuid = event.target.value;
455
    //     var uuid = event.target.value;
456
 
456
 
457
        $("#add-button").data('url', String('$routeAdd').replaceAll('UUID_PLACEHOLDER', uuid))
457
    //     $("#add-button").data('url', String('$routeAdd').replaceAll('UUID_PLACEHOLDER', uuid))
458
 
458
 
459
        $.ajax({
459
    //     $.ajax({
460
            'dataType': 'json',
460
    //         'dataType': 'json',
461
            'accept': 'application/json',
461
    //         'accept': 'application/json',
462
            'method': 'get',
462
    //         'method': 'get',
463
            'url': "$routeIndex" + "?vacancy_uuid=" + $('#vacancy_uuid').val(),
463
    //         'url': "$routeIndex" + "?vacancy_uuid=" + $('#vacancy_uuid').val(),
464
        }).done(function (response) {
464
    //     }).done(function (response) {
465
            var data = response.data
465
    //         var data = response.data
466
 
466
 
467
            data.candidates.forEach(function (candidate) {
467
    //         data.candidates.forEach(function (candidate) {
468
                var option = $('<option />')
468
    //             var option = $('<option />')
469
                    .val(candidate.uuid)
469
    //                 .val(candidate.uuid)
470
                    .text(candidate.first_name)
470
    //                 .text(candidate.first_name)
-
 
471
    //                 .data('addUrl', candidate.add_url)
-
 
472
    //                 .data('editUrl', candidate.edit_url)
-
 
473
    //                 .data('deleteUrl', candidate.delete_url)
-
 
474
    //                 .data('reportUrl', candidate.report_url)
-
 
475
 
-
 
476
    //             $('#candidate_uuid').append(option);
-
 
477
    //         });
Línea 471... Línea -...
471
                    .data('addUrl', candidate.add_url)
-
 
472
                    .data('editUrl', candidate.edit_url)
-
 
473
                    .data('deleteUrl', candidate.delete_url)
-
 
474
                    .data('reportUrl', candidate.report_url)
-
 
475
 
-
 
476
                $('#candidate_uuid').append(option);
-
 
477
            });
-
 
478
 
-
 
479
            $('#candidate_uuid').change();
-
 
480
 
478
 
Línea 481... Línea 479...
481
            $('#job-description').html($('#job-description-template').render(response.data));
479
    //         $('#job-description').html($('#job-description-template').render(response.data));
482
        })
480
    //     })
483
    });
481
    // });
484
 
482