|
|
@@ -244,13 +244,13 @@
|
|
|
<div>
|
|
|
<ul id="sortArea">
|
|
|
<li>
|
|
|
- <a href="javascript:void(0);" class="on" onclick="fnSortList(this,'NEW');">최신상품순</a>
|
|
|
+ <a href="javascript:void(0);" id="sortingNEW" class="on" onclick="fnSortingChange(this,'NEW');">최신상품순</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <a href="javascript:void(0);" onclick="fnSortList(this,'BEST');">인기상품순</a>
|
|
|
+ <a href="javascript:void(0);" id="sortingBEST" onclick="fnSortingChange(this,'BEST');">인기상품순</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <a href="javascript:void(0);" onclick="fnSortList(this,'REVIEW');">리뷰 많은순</a>
|
|
|
+ <a href="javascript:void(0);" id="sortingREVIEW" onclick="fnSortingChange(this,'REVIEW');">리뷰 많은순</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -984,7 +984,7 @@
|
|
|
if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
|
|
|
var historyData = sessionStorage.getItem(document.location.href);
|
|
|
if(historyData!=null){
|
|
|
- console.log('historyData>>'+historyData);
|
|
|
+ //console.log('historyData>>'+historyData);
|
|
|
historyData = JSON.parse(historyData);
|
|
|
}else{
|
|
|
historyData = {};
|
|
|
@@ -1027,9 +1027,9 @@
|
|
|
fnFilterSliderMove(min,max);
|
|
|
}
|
|
|
if(typeof historyData.sortingType!='undefined' && historyData.sortingType!=''){
|
|
|
- $("#sortSelect").val(historyData.sortingType);
|
|
|
$("#searchGoodsForm input:hidden[name=sortingType]").val(historyData.sortingType);
|
|
|
- fnSortList(this,historyData.sortingType);
|
|
|
+ fnSortingChange(this,historyData.sortingType,'back');
|
|
|
+ $(".fillter").show();
|
|
|
}else{
|
|
|
$(".fillter").show();
|
|
|
fnCategoryGoodsInfiniteScrollInit();
|
|
|
@@ -1038,35 +1038,20 @@
|
|
|
}
|
|
|
}else{
|
|
|
fnCategoryGoodsInfiniteScrollInit();
|
|
|
- var sortingType = [[${sortingType}]];
|
|
|
+ var sortingType = $("#searchGoodsForm input:hidden[name=sortingType]").val();
|
|
|
if(sortingType=='BEST' || sortingType=='REVIEW'){
|
|
|
$("#sortArea").find('li').each(function (){
|
|
|
$(this).find('a').attr('class','off');
|
|
|
});
|
|
|
|
|
|
$(this).addClass("on");
|
|
|
- fnSortList(this, sortingType);
|
|
|
+ fnSortingChange(this, sortingType);
|
|
|
}else{
|
|
|
fnGoodsListSearch();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
- var fnSortList = function (obj, sortingType){
|
|
|
- if($("#searchGoodsForm input[name=sortingType]").val()==sortingType){
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- $("#sortArea").find('li').each(function (){
|
|
|
- $(this).find('a').attr('class','off');
|
|
|
- });
|
|
|
-
|
|
|
- $(obj).addClass("on");
|
|
|
- $("#searchGoodsForm").find("[name=sortingType]").val(sortingType);
|
|
|
- fnCategoryGoodsInfiniteScrollInit();
|
|
|
- fnGoodsListSearch();
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
/*]]>*/
|
|
|
|
|
|
// 동영상 플레이어
|