Changeset 43c9090 for src/main/resources/static/js/users-view.js
- Timestamp:
- 10/12/24 21:32:15 (5 weeks ago)
- Branches:
- master
- Parents:
- 743de55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/js/users-view.js
r743de55 r43c9090 12 12 } 13 13 function calculateAge(dateBirth){ 14 console.log(dateBirth);15 14 const [year, month, day] = dateBirth.split('-').map(Number); 16 15 const birthDate = new Date(year, month - 1, day); … … 55 54 button.addEventListener('click',()=>{ 56 55 let temp=user.username; 57 console.log(temp);58 56 const params = new URLSearchParams({ param1: 'ADMIN', param2: temp }).toString(); 59 57 window.location.href = `editUser.html?${params}`; … … 90 88 document.getElementById("search-input-container").style.display = 'none'; 91 89 const selectedValue = event.currentTarget.value; 92 console.log(selectedValue);93 90 if(selectedValue!=='defaultValue') 94 91 filterUsers("status",selectedValue).then(r => console.log(r)); … … 98 95 setInitialSelectValue(userStatusElement); 99 96 const dataCheck = event.currentTarget.value; 100 console.log(dataCheck);101 97 updateSearchInputVisibility(dataCheck); 102 98 103 99 document.getElementById("search-button").addEventListener('click',function (){ 104 100 let filterTemp=document.getElementById("search-input"); 105 console.log(filterTemp.value);106 101 filterUsers(dataCheck,filterTemp.value).then(r => console.log(r)); 107 102 filterTemp.value='';
Note:
See TracChangeset
for help on using the changeset viewer.