|
|
@@ -25,7 +25,7 @@
|
|
|
<div class="inner wide">
|
|
|
<div class="category_nav">
|
|
|
<ul id="cateListArea">
|
|
|
- <li><button type="button" class="active" id="li0" onclick="fnBestListSearch(this,'');">전체</button></li>
|
|
|
+ <li class="" id="li0"><button type="button" onclick="fnBestListSearch(this,'');">전체</button></li>
|
|
|
<th:block th:each="item, stat : ${bestCateList}">
|
|
|
<li class="" th:id="${'li'+item.cateNo}"><button type="button" th:onclick="fnBestListSearch(this,[[${item.cateNo}]]);" th:text="${item.cateNm}">여성</button></li>
|
|
|
</th:block>
|
|
|
@@ -313,10 +313,15 @@
|
|
|
// cateNo = 0;
|
|
|
// }
|
|
|
|
|
|
- $.each($("#cateListArea").find('li'), function() {
|
|
|
+ $.each($("#cateListArea").find('li').find('button'), function() {
|
|
|
$(this).removeClass();
|
|
|
});
|
|
|
- $("#li"+cateNo).addClass('active');
|
|
|
+ if(gagajf.isNull(cateNo)){
|
|
|
+ $("#li0").find("button").addClass('active');
|
|
|
+ }else{
|
|
|
+ $("#li"+cateNo).find("button").addClass('active');
|
|
|
+ }
|
|
|
+
|
|
|
$("#bestGoodsForm input[name=cateNo]").val(cateNo);
|
|
|
fnCategoryGoodsInfiniteScrollInit();
|
|
|
gagaInfiniteScroll.getHistory();
|