diff --git a/web/js/users.js b/web/js/users.js index 79d2ad7..eabcb01 100644 --- a/web/js/users.js +++ b/web/js/users.js @@ -42,7 +42,16 @@ instance.get("users/count", { withCredentials: true }).then(function(response){ }); -instance.get("users", {withCredentials: true, params :{ page:0, nbPages: nbPages}}).then(function(response){ + + +var page = 0; +var pageCurrent = getQuery("page"); +if (pageCurrent.length > 0){ + page = Number.parseInt(pageCurrent); + page = page - 1; +} + +instance.get("users", {withCredentials: true, params :{ page:page, nbPages: nbPages}}).then(function(response){ var trTag = document.querySelector("#users tbody tr").cloneNode(true); listData = response.data; for (var i=0; i