forked from v4l3n71n/covas-bo
add user success
This commit is contained in:
parent
b9aefc1dcd
commit
a34f05a300
@ -123,6 +123,11 @@
|
||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-success alert-dismissible hidden" id="createUserAlert" role="alert">
|
||||
<div>Vous avez créer un utilisateur</div>
|
||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-warning alert-dismissible hidden" id="pseudoExistAlert" role="alert">
|
||||
<div>Pseudo déjà pris</div>
|
||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
||||
|
@ -50,7 +50,7 @@ document.getElementById("addUser").addEventListener("click", function(){
|
||||
var idAlert = "";
|
||||
switch(response.status){
|
||||
case 201:
|
||||
location.reload();
|
||||
idAlert="createUser"
|
||||
break;
|
||||
case 204:
|
||||
idAlert="notModified"
|
||||
|
Loading…
x
Reference in New Issue
Block a user