From 8fe9ce445ff81842729996129fa698d360dde662 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 31 Jul 2024 15:20:01 +0900 Subject: [PATCH 1/2] =?UTF-8?q?userCtrl.sort(..),=20onSort(..)=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 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 92dc937..6731a5f 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,6 +106,12 @@ userCtrl.onDatasetChange = obj => { }); }; +userCtrl.onSort = sorter => { + userCtrl.renderList(); + + sorting.setHeaders(userCtrl.querySelectorAll("th[data-field]"), sorter); +}; + userCtrl.onCurrentChange = item => { if (!item) return; From 83c42b8211eed72274769b670271445f6aa1342a Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 1 Aug 2024 14:32:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=20sort=20?= =?UTF-8?q?=EC=88=98=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},