forked from v4l3n71n/covas-bo
adduser message
This commit is contained in:
parent
a34f05a300
commit
14fdc8e10c
@ -124,7 +124,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-success alert-dismissible hidden" id="createUserAlert" role="alert">
|
<div class="alert alert-success alert-dismissible hidden" id="createUserAlert" role="alert">
|
||||||
<div>Vous avez créer un utilisateur</div>
|
<div>Vous avez créer l'utilisateur <span id="displayUser"></span></div>
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
<button type="button" class="btn-close" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -51,6 +51,10 @@ document.getElementById("addUser").addEventListener("click", function(){
|
|||||||
switch(response.status){
|
switch(response.status){
|
||||||
case 201:
|
case 201:
|
||||||
idAlert="createUser"
|
idAlert="createUser"
|
||||||
|
var user = document.getElementById("pseudoUpdateInput").value;
|
||||||
|
if(user.length > 0){
|
||||||
|
document.getElementById("displayUser").textContent=user;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 204:
|
case 204:
|
||||||
idAlert="notModified"
|
idAlert="notModified"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user