From b9aefc1dcde9d2aadcb90b9e310e8ad6a9131e9a Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 14 Aug 2022 19:32:40 +0200 Subject: [PATCH] remove data-bs-dismiss --- web/html/adduser.html | 20 +++++++++++++++----- web/html/user.html | 18 +++++++++--------- web/js/addUser.js | 10 +++++++++- web/js/library.js | 11 ++++++++--- 4 files changed, 41 insertions(+), 18 deletions(-) diff --git a/web/html/adduser.html b/web/html/adduser.html index 4565e32..d38de6a 100644 --- a/web/html/adduser.html +++ b/web/html/adduser.html @@ -120,27 +120,37 @@ + + + + diff --git a/web/html/user.html b/web/html/user.html index 3f98f81..4d3b390 100644 --- a/web/html/user.html +++ b/web/html/user.html @@ -125,49 +125,49 @@
diff --git a/web/js/addUser.js b/web/js/addUser.js index d22d242..671956a 100644 --- a/web/js/addUser.js +++ b/web/js/addUser.js @@ -1,5 +1,6 @@ checkToken(); signOut(); +closeButton(); document.getElementById("addUser").addEventListener("click", function(){ @@ -60,8 +61,15 @@ document.getElementById("addUser").addEventListener("click", function(){ } document.getElementById(idAlert+"Alert").classList.remove("hidden"); }).catch(function(error){ - switch(error.status){ + console.log(error); + switch(error.response.status){ case 401: + listExist = [ "pseudo", "email" ]; + for(var i=0; i