Actualización de tipo de solicitud

This commit is contained in:
2024-03-14 13:11:03 -06:00
parent 0ecaa0e99b
commit 24107d2b03

View File

@@ -632,6 +632,7 @@ if(!is_null($user->periodo_id)){
$('#fecha_cambio').val(""); $('#fecha_cambio').val("");
$('#fecha_falta').val(""); $('#fecha_falta').val("");
$('#fecha_nueva').val(""); $('#fecha_nueva').val("");
console.log(tipo);
$("#tipo").val(tipo); $("#tipo").val(tipo);
switch(tipo){ switch(tipo){
case 1://reposición case 1://reposición
@@ -848,10 +849,11 @@ if(!is_null($user->periodo_id)){
$('#modal').on('show.bs.modal', function (event) { $('#modal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget); // Button that triggered the modal var button = $(event.relatedTarget); // Button that triggered the modal
var tipo = button.data('tipo'); // 1 alta, 2 edicion var tipo = button.data('tipo');
var accion = button.data('accion'); var accion = button.data('accion'); // 1 alta, 2 edicion
var modal = $(this); var modal = $(this);
console.log("Show "+tipo);
$("#loadingGroup").hide(); $("#loadingGroup").hide();
$("#submitGroup").show(); $("#submitGroup").show();