diff --git a/web/src/main/webapp/WEB-INF/jsp/index.jsp b/web/src/main/webapp/WEB-INF/jsp/index.jsp index b5ab4e5..9cd6edb 100644 --- a/web/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/web/src/main/webapp/WEB-INF/jsp/index.jsp @@ -28,16 +28,26 @@ }); $("#tabs").on('click', 'button', function () { + $(this).addClass('active'); - $($(this).attr('href')).addClass('active show'); - $($(this).attr('href')).siblings().removeClass('active show') $(this).siblings().removeClass('active'); + $($(this).attr('href')).addClass('active show'); + $($(this).attr('href')).siblings().removeClass('active show'); + $("#menu"+$(this).data('id')).addClass('active show'); + $("#menu"+$(this).data('id')).siblings().removeClass('active show'); }); $("#tabs").on('click', 'i', function () { - $(this).parent().remove(); - $($(this).parent().attr('href')).remove(); + button=$(this).parent(); + $(button.attr('href')).remove(); + if(button.next().length==0){ + button.prev().click(); + }else{ + button.next().click(); + } + + button.remove(); }); }); @@ -61,21 +71,13 @@ - -