Commit 82606842 authored by Vincent Le gallic's avatar Vincent Le gallic
Browse files

[JS] On vérifie que la variable page_dons existe avant de l'utiliser

parent a3874cc6
......@@ -78,7 +78,7 @@ function request(type, asked, callback) {
}
};
/* On envoie la requête en POST */
if (page_dons) {
if (typeof page_dons !== 'undefined' && page_dons) {
target = "quick_search_dons/";
} else if (type == "bouton") {
target = "get_boutons/b/"
......
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