Skip to content

Commit

Permalink
Resolução da issue #649
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPintoSouza committed Jul 22, 2024
1 parent be8abce commit b31a363
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions html/funcionario/profile_dependente.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,46 +369,6 @@ function adicionar_situacao() {
})
}

function gerarCargo() {
url = '../../dao/exibir_cargo.php';
$.ajax({
data: '',
type: "POST",
url: url,
success: function(response) {
var cargo = response;
$('#cargo').empty();
$('#cargo').append('<option selected disabled>Selecionar</option>');
$.each(cargo, function(i, item) {
$('#cargo').append('<option value="' + item.id_cargo + '">' + item.cargo + '</option>');
});
},
dataType: 'json'
});
}

function adicionar_cargo() {
url = '../../dao/adicionar_cargo.php';
var cargo = window.prompt("Cadastre um Novo Cargo:");
if (!cargo) {
return
}
situacao = cargo.trim();
if (cargo == '') {
return
}
data = 'cargo=' + cargo;
$.ajax({
type: "POST",
url: url,
data: data,
success: function(response) {
gerarCargo();
},
dataType: 'text'
})
}

function listarDocDependente(docdependentes) {
$("#doc-tab").empty();
$.each(docdependentes, function(i, item) {
Expand Down

0 comments on commit b31a363

Please sign in to comment.