From d58f386aae833c06ba211d118eb5da2cd6237e01 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 7 Aug 2022 00:14:14 +0200 Subject: [PATCH] add function disable, cancel removing and remove user --- web/js/user.js | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/web/js/user.js b/web/js/user.js index f49dadb..80cbc7e 100644 --- a/web/js/user.js +++ b/web/js/user.js @@ -41,13 +41,55 @@ if(id.length > 0){ } if(buttonUser.length > 0){ - console.log(disableUser); document.getElementById(buttonUser).classList.remove("hidden"); } + + var listModalButton = ["disable", "enable", "cancel", "remove"]; + + for (var i=0; i