Proyectos de Subversion LeadersLinked - Backend

Rev

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

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