Commit cedd7032 authored by Mat's avatar Mat
Browse files

[resolu] Utilisateurs ajax recherche live, répare le bug du chevauchement de requêtes

parent 6e4a3910
......@@ -29,12 +29,7 @@ function reloadTableSearchUtilisateur(qString)
let searchURL = Routing.generate('api_utilisateur_search', qString);
refreshSearchStats(searchURL);
tbody.innerHTML = null;
sleep(300).then(() => {
// TODO le sleep est encore buggé
getTableBodyUtilisateur(searchURL);
});
getTableBodyUtilisateur(searchURL);
}
......@@ -47,6 +42,7 @@ function getTableBodyUtilisateur(URL)
{
let json = JSON.parse(request.responseText);
tbody.innerHTML = null;
for (let i = 0; i < json.length; i++)
{
let tr = buildRowUtilisateur(json[i]);
......
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