diff --git a/src/main/resources/static/dev/authority_list_dev.html b/src/main/resources/static/dev/authority_list_dev.html index e33e3f7..1758653 100644 --- a/src/main/resources/static/dev/authority_list_dev.html +++ b/src/main/resources/static/dev/authority_list_dev.html @@ -186,9 +186,20 @@ } */ $(function() { + $("#div_personal_search").hide(); $("#search_btn").on("click", function () { $("select[name='search_select'] option:selected").val(); }); + $(".nav-item button").on("click", function(obj){ + const selectedButtonId = $(obj.currentTarget).attr('id'); + if(selectedButtonId === 'home-tab'){ + $("#div_group_search").show(); + $("#div_personal_search").hide(); + }else{ + $("#div_group_search").hide(); + $("#div_personal_search").show(); + } + }); });