From f2bb0cb6cc6a9b5aed1135e3b181991ddc7ad8c7 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 22 Aug 2024 15:47:46 +0900 Subject: [PATCH] =?UTF-8?q?userCtrl=20=EB=A9=94=EC=86=8C=EB=93=9C=20?= =?UTF-8?q?=EB=8F=99=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/base/user/user-main.jsp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp b/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp index 86ac102d..e3938352 100644 --- a/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp @@ -7,7 +7,7 @@
- @@ -86,10 +86,10 @@ var userCtrl = newUserControl(); userCtrl.search = () => { userCtrl.query = { - by: userCtrl.find("by").value, - term: userCtrl.find("term").value, - status: userCtrl.find("status").value, - type: userCtrl.find("type").value, + by: userCtrl.find('name', "by").value, + term: userCtrl.find('name', "term").value, + status: userCtrl.find('name', "status").value, + type: userCtrl.find('name', "type").value, }; if(userCtrl.query.by == "userAccount"){ @@ -115,13 +115,13 @@ userCtrl.renderList = () => { let trs = empty ? [document.getElementById("userNotFound").innerHTML] : <%-- from template#userNotFound --%> userList.inStrings( - userCtrl.find("userRow").innerHTML, <%-- from template#userRow --%> + userCtrl.find('name', "userRow").innerHTML, <%-- from template#userRow --%> (str, dataItem) => str .replace(/{onclick}=""/gi, 'onclick="userCtrl.setCurrent(\'' + dataItem.getValue("USER_ID") + '\');"') .replace(/{ondblclick}=""/gi, 'ondblclick="userCtrl.getInfo(\'' + dataItem.getValue("USER_ID") + '\')"') ); - userCtrl.find("userList").innerHTML = trs.join(""); - userCtrl.querySelector("[name='userThead'] th input[type='checkbox']").checked = false; + userCtrl.find('name', "userList").innerHTML = trs.join(""); + userCtrl.find("[name='userThead'] th input[type='checkbox']").checked = false; } userCtrl.onDatasetChange = obj => { @@ -148,12 +148,12 @@ userCtrl.onSelectionChange = selected => { let userList = userCtrl.dataset; let keys = selected.map(e => userList.getKey(e)); - userCtrl.querySelectorAll("[name='userList'] input[type='checkbox']") + userCtrl.findAll("[name='userList'] input[type='checkbox']") .forEach(node => { node.checked = keys.includes(node.value); }); - userCtrl.querySelectorAll(".enable-onfound") + userCtrl.findAll(".enable-onfound") .forEach(node => { node.disabled = keys.length < 1; });