Commit f0759c74 authored by Mat's avatar Mat

ajoute la brasserie à la liste

parent 7bb59939
......@@ -67,6 +67,12 @@ $(document).ready(function()
data: $('#form').serialize(),
success: function(data) {
alert('success');
if (targetedId === undefined)
{
$('#brasserie').append(
`<li data-target="${data.id}">${data.nom}</li>`
);
}
},
error: function(xhr) {
console.log(xhr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment