diff --git a/web/js/users.js b/web/js/users.js index 90ad018..b92bd16 100644 --- a/web/js/users.js +++ b/web/js/users.js @@ -114,11 +114,17 @@ document.getElementById("searchUser").addEventListener("keydown", function(ev){ }); document.getElementById("inputStatus").addEventListener("change", function(e){ - alert(e.target.value); + var search = document.getElementById("searchUser").value; + var select = document.getElementById("inputRoles"); + var roles = select.options[select.selectedIndex].value; + alert(e.target.value+" "+roles+" "+search); }); document.getElementById("inputRoles").addEventListener("change", function(e){ - alert(e.target.value); + var search = document.getElementById("searchUser").value; + var select = document.getElementById("inputStatus"); + var status = select.options[select.selectedIndex].value; + alert(e.target.value+" "+status+" "+search); })