Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3164 Rev 3165
Línea 472... Línea 472...
472
   $('#vacancy_uuid').change();
472
   $('#vacancy_uuid').change();
Línea 473... Línea 473...
473
 
473
 
474
   $('#candidate_uuid').on('change', function () {
474
   $('#candidate_uuid').on('change', function () {
475
        const uuid = $('#candidate_uuid').val();
475
        const uuid = $('#candidate_uuid').val();
476
        const data = $('#candidate_uuid option[value="' + uuid + '"]').data()
-
 
477
        
-
 
478
        $('#add-button').data('url', data.addUrl)
-
 
479
        $("#edit-button").data('url', data.editUrl)
-
 
480
        $("#delete-button").data('url', data.deleteUrl)
-
 
481
        $("#report-button").attr('href', data.reportUrl)
-
 
482
        if (data.addUrl) {
-
 
483
            $('#add-button').show();
-
 
484
            $('#report-button').show();
-
 
485
            $('#edit-button').hide();
-
 
486
            $('#delete-button').hide();
-
 
487
        } else {
-
 
488
            $('#add-button').hide();
-
 
489
            $('#edit-button').show();
-
 
490
            $('#delete-button').show();
-
 
491
            $('#report-button').show();
-
 
492
        }
-
 
493
 
476
        const data = $('#candidate_uuid option[value="' + uuid + '"]').data()
Línea 494... Línea 477...
494
    });
477
    });
495
 
478