From 8fe9ce445ff81842729996129fa698d360dde662 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 31 Jul 2024 15:20:01 +0900 Subject: [PATCH] =?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;