fix list events

This commit is contained in:
Valentin CZERYBA 2023-11-09 21:22:20 +01:00
parent 162edf5857
commit 83321404ab
2 changed files with 7 additions and 2 deletions

View File

@ -129,7 +129,7 @@
<h1 class="h2">Évènements</h1> <h1 class="h2">Évènements</h1>
<div class="btn-toolbar mb-2 mb-md-0"> <div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group me-2"> <div class="btn-group me-2">
<button type="button" id=addEvent class="btn btn-sm btn-outline-secondary">Ajouter un évènement</button> <button type="button" id=addUser class="btn btn-sm btn-outline-secondary">Ajouter un évènement</button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -216,8 +216,13 @@ document.getElementById("searchUser").addEventListener("keydown", function(ev){
} }
}); });
if (pathURL=="users"){
listInput = ["Status", "Roles", "Pages" ]
}
if (pathURL=="events"){
listInput = ["Status", "Pages" ]
}
listInput = ["Status", "Roles", "Pages" ]
for (var i=0; i<listInput.length; i++){ for (var i=0; i<listInput.length; i++){
document.getElementById("input"+listInput[i]).addEventListener("change", function(e){ document.getElementById("input"+listInput[i]).addEventListener("change", function(e){
var param = buildParam("inputSelect"); var param = buildParam("inputSelect");