From 83c42b8211eed72274769b670271445f6aa1342a Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 1 Aug 2024 14:32:53 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=20sort=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 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 6731a5f..e3efa91 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 @@ -24,8 +24,8 @@ - - + + @@ -106,12 +106,6 @@ userCtrl.onDatasetChange = obj => { }); }; -userCtrl.onSort = sorter => { - userCtrl.renderList(); - - sorting.setHeaders(userCtrl.querySelectorAll("th[data-field]"), sorter); -}; - userCtrl.onCurrentChange = item => { if (!item) return; @@ -137,6 +131,8 @@ $(userCtrl.selector("[name='term']")).onEnterPress(userCtrl.search); $(function(){ ${onload} + tableSorter(userCtrl, "th[data-field]"); + userCtrl.setData({ userList:${userList}, ${infoPrefix}Start:${userStart},