From b31a36334f76cb79d9e87ffca61d926c4813d4f3 Mon Sep 17 00:00:00 2001 From: GabrielPintoSouza Date: Mon, 22 Jul 2024 09:13:52 -0300 Subject: [PATCH] =?UTF-8?q?Resolu=C3=A7=C3=A3o=20da=20issue=20#649?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/funcionario/profile_dependente.php | 40 ------------------------- 1 file changed, 40 deletions(-) diff --git a/html/funcionario/profile_dependente.php b/html/funcionario/profile_dependente.php index 196e8a16..3fd20df7 100644 --- a/html/funcionario/profile_dependente.php +++ b/html/funcionario/profile_dependente.php @@ -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(''); - $.each(cargo, function(i, item) { - $('#cargo').append(''); - }); - }, - 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) {