From 1195035516b11f271ad12d9c0d22b87742733e49 Mon Sep 17 00:00:00 2001 From: com02 Date: Wed, 1 Dec 2021 19:24:46 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=91=EA=B7=BC=EC=84=B1=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/nlib/collection/searchList.jsp | 4 ++-- src/main/webapp/js/default.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp b/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp index 0d2205e2..219b4ab6 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp @@ -71,7 +71,7 @@ window.onload = function() { }); // 탭 액티브 중복 방지 - $(".tab ul.tabs").removeClass("active").find("> li:eq(0)").removeClass("current"); + $(".tab ul.tabs").removeClass("active").find("> li:eq(0)").removeClass("current").removeAttr('title','');; $("#referencelistForm input:checkbox[name='reQueryChk']").on('change', function() { if ( $(this).prop('checked') ) @@ -109,7 +109,7 @@ window.onload = function() { function fnSetInitialValue() { //탭 - $("#"+"${searchVO.collection}").parent().addClass('current'); + $("#"+"${searchVO.collection}").parent().addClass('current').attr('title','선택됨'); //페이징 gfn_makePaging("fn_search_article",'${pageVO.pageIndex}','${pageVO.totRecordCount}','${pageVO.startPage}','${pageVO.endPage}','${pageVO.lastPage}'); diff --git a/src/main/webapp/js/default.js b/src/main/webapp/js/default.js index b2351b56..70f7438f 100644 --- a/src/main/webapp/js/default.js +++ b/src/main/webapp/js/default.js @@ -27,12 +27,13 @@ $(document).ready(function(){ /* 인기자료 탭메뉴 */ (function ($) { $(".tab ul.tabs").addClass("active").find("> li:eq(0)").addClass("current"); + $(".tab ul.tabs").addClass("active").find("> li:eq(0)").attr('title','선택됨'); $(".tab ul.tabs li a").click(function (g) { var tab = $(this).closest(".tab"), index = $(this).closest("li").index(); - tab.find("ul.tabs > li").removeClass("current"); - $(this).closest("li").addClass("current"); + tab.find("ul.tabs > li").removeClass("current").removeAttr('title',''); + $(this).closest("li").addClass("current").attr('title','선택됨'); tab.find(".tab_content") .find("div.tabs_item")