Skip to content

Commit

Permalink
Removido alerta com "1" após cadastrar categoria
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoAMF committed May 9, 2019
1 parent 54f929b commit 76002d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/cadastro-produto.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ $('#formato-botao-mais').on('click',function(){

let url = "processa-categoria.php?nome=" + value;

alertify.success('Cadastrado com sucesso')
alertify.success('Cadastrado com sucesso');

var request = $.ajax({
url: url,
cache: false
});

request.done(function(msg) {
alert(msg);
$('#categoria').add("<option> " +value+ "</option>").prependTo("#categoria");
$("#categoria").val( $('option:contains('+value+')').val() );
});
Expand All @@ -54,8 +53,6 @@ $('#formato-botao-mais').on('click',function(){

frm.submit(function (e) {



e.preventDefault();

let erros = false;
Expand Down

0 comments on commit 76002d0

Please sign in to comment.