Created
November 4, 2017 11:23
-
-
Save mvnp/fc096efe45bf90dfc23392264a7e76b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('blur', '.edit_descr > span', function(event){ | |
event.preventDefault(); | |
var descricao = $(this).text(); | |
var metodo_id = $(this).data("metodo_id"); | |
if(descricao && metodo_id){ | |
if(confirm("Deseja realmente atualizar a descrição desta função no sistema?") == true){ | |
$.ajax({ | |
url: '/permissoes/alterardescricao', type: 'POST', dataType: 'json', | |
data: {descricao: descricao, metodo_id: metodo_id}, | |
success: function(ret){ | |
console.log(ret); | |
} | |
}); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment