checkToken(); signOut(); closeButton(); pathURL = document.location.pathname.split("/")[document.location.pathname.split("/").length-1].split(".")[0] var id = getQuery("id"); if(id.length > 0){ instance.get(pathURL + "s/"+id, {withCredentials: true}) .then(function(response){ switch(pathURL){ case "user": var listValue = [ "id", "username", "name", "firstName", "email", "birth"]; break; case "event": var listValue = [ "id", "name", "organizers", "place", "start_date", "end_date"]; break; default: var listValue = [] break; } var listTime = ["connected_at", "created_at", "updated_at", "deleted_at", "disabled_at"]; for (var i=0; i 0 ){ listOrga = [] for (var j=0; j 0){ document.getElementById(buttonUser).classList.remove("hidden"); } var listModalButton = ["disable", "enable", "cancel", "remove"]; for (var i=0; i