Commit 25c0a406 authored by Mat's avatar Mat
Browse files

[resolved] fermeture de la modale quand on submit

résolu en jquery, pas trouvé en javascript
parent 3b747573
......@@ -454,6 +454,7 @@
AJAX('POST', submitURL, function()
{
reloadTableLegume(paginate);
$('.form-legume-modal').modal('hide'); // en jquery
},
form);
});
......
......@@ -391,12 +391,17 @@
}
reloadTables();
/*
*
* Initialise l'affichage de la page
*/
let submitURL = null;
let form = document.querySelector('form[name=offre]');
let titleForm = document.querySelector('#form-offre');
reloadTables();
/*
* Ajouter une nouvelle offre
......@@ -420,7 +425,8 @@
let form = this;
e.preventDefault();
AJAX('POST', submitURL, function() {
reloadTableOffre();
reloadTableOffre('draft');
$('.form-offre-modal').modal('hide'); // en jquery
}, form);
});
......
Supports Markdown
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