From 6cd69bf69d5874e79b90925e18a0fd86df9be42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E7=A5=A5=20=E8=A9=B9?= Date: Mon, 29 Jul 2024 01:32:07 +0800 Subject: [PATCH] updates --- Views/Home/GroupList.cshtml | 2 +- wwwroot/assets/javascript/custom/grouplist.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Views/Home/GroupList.cshtml b/Views/Home/GroupList.cshtml index 95f1bb18..a6d469cf 100644 --- a/Views/Home/GroupList.cshtml +++ b/Views/Home/GroupList.cshtml @@ -103,7 +103,7 @@ diff --git a/wwwroot/assets/javascript/custom/grouplist.js b/wwwroot/assets/javascript/custom/grouplist.js index f077e9ae..bbb52aaf 100644 --- a/wwwroot/assets/javascript/custom/grouplist.js +++ b/wwwroot/assets/javascript/custom/grouplist.js @@ -4,7 +4,11 @@ var tmpNestableItem; var tmpGroupNameItem; $(document).ready(function () { deptList(); - + + $('#search_btn').on('click', function () { + groupList(); + }); + $('#memberAddSaveBtn').on('click', function () { var userArray = []; var html = ''; @@ -205,9 +209,9 @@ $(document).ready(function () { }); -function newMemberClick(dept_uid) { +function newMemberClick() { var formData = { - dept_uid: dept_uid + dept_uid: $('#dept_select').val() } $.ajax({