From 14fdc8e10c79ae69648fe08151a510f614836563 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 15 Aug 2022 17:43:30 +0200 Subject: [PATCH] adduser message --- web/html/adduser.html | 2 +- web/js/addUser.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/html/adduser.html b/web/html/adduser.html index 99f2af0..3568f01 100644 --- a/web/html/adduser.html +++ b/web/html/adduser.html @@ -124,7 +124,7 @@ diff --git a/web/js/addUser.js b/web/js/addUser.js index dd84e31..766d6d7 100644 --- a/web/js/addUser.js +++ b/web/js/addUser.js @@ -51,6 +51,10 @@ document.getElementById("addUser").addEventListener("click", function(){ switch(response.status){ case 201: idAlert="createUser" + var user = document.getElementById("pseudoUpdateInput").value; + if(user.length > 0){ + document.getElementById("displayUser").textContent=user; + } break; case 204: idAlert="notModified"