|
@@ -705,4 +705,73 @@ var fnSelectFilerMob = function (obj, gubun, staus, sizeGb){
|
|
|
fnFilterSet(gubun, sizeGb, 'Mob');
|
|
fnFilterSet(gubun, sizeGb, 'Mob');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+var fnSetMobCateFilter = function (obj, cate1No, cate2No, cate3No, cate4No, cate5No){
|
|
|
|
|
+ // 활성화 되었을때
|
|
|
|
|
+ if($(obj).hasClass("on")) {
|
|
|
|
|
+ if($(obj).attr('data-depth')==1){
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html('');
|
|
|
|
|
+ fnSetCateFilter();
|
|
|
|
|
+ }else if($(obj).attr('data-depth')==2){
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).parent().parent().parent().find('[data-depth=1]').attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No);
|
|
|
|
|
+ }else if($(obj).attr('data-depth')==3){
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).parent().parent().parent().find('[data-depth=2]').attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No, cate2No);
|
|
|
|
|
+ }else if($(obj).attr('data-depth')==4){
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).parent().parent().parent().find('[data-depth=3]').attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No, cate2No, cate3No);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).parent().parent().parent().find('[data-depth=4]').attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No, cate2No, cate3No, cate4No);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+ if($(obj).attr('data-depth')==1){
|
|
|
|
|
+ $("#categoryFilterDiv").find('[data-depth=1]').each(function (){
|
|
|
|
|
+ $("#categoryFilterDiv").find('.daps4').each(function (idx){
|
|
|
|
|
+ $(this).parent().find('a').removeClass('on');
|
|
|
|
|
+ $(this).css('display','none');
|
|
|
|
|
+ });
|
|
|
|
|
+ $("#categoryFilterDiv").find('.daps3').each(function (idx){
|
|
|
|
|
+ $(this).parent().find('a').removeClass('on');
|
|
|
|
|
+ $(this).css('display','none');
|
|
|
|
|
+ });
|
|
|
|
|
+ $("#categoryFilterDiv").find('.daps2').each(function (idx){
|
|
|
|
|
+ $(this).parent().find('a').removeClass('on');
|
|
|
|
|
+ });
|
|
|
|
|
+ $(this).removeClass("on");
|
|
|
|
|
+ $(this).parent().find('ul').css('display','none');
|
|
|
|
|
+ });
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No);
|
|
|
|
|
+ }else if($(obj).attr('data-depth')==2) {
|
|
|
|
|
+ $("#categoryFilterDiv").find('[data-depth=2]').each(function (){
|
|
|
|
|
+ $("#categoryFilterDiv").find('.daps4').each(function (idx){
|
|
|
|
|
+ $(this).parent().find('a').removeClass('on');
|
|
|
|
|
+ $(this).css('display','none');
|
|
|
|
|
+ });
|
|
|
|
|
+ $(this).removeClass("on");
|
|
|
|
|
+ $(this).parent().find('ul').css('display','none');
|
|
|
|
|
+ });
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No, cate2No);
|
|
|
|
|
+ }else if($(obj).attr('data-depth')==3) {
|
|
|
|
|
+ $("#categoryFilterDiv").find('[data-depth=3]').each(function (){
|
|
|
|
|
+ $(this).removeClass("on");
|
|
|
|
|
+ $(this).parent().find('ul').css('display','none');
|
|
|
|
|
+ });
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No, cate2No, cate3No);
|
|
|
|
|
+ }else if($(obj).attr('data-depth')==4) {
|
|
|
|
|
+ $("#categoryFilterDiv").find('[data-depth=4]').each(function (){
|
|
|
|
|
+ $(this).removeClass("on");
|
|
|
|
|
+ $(this).parent().find('ul').css('display','none');
|
|
|
|
|
+ });
|
|
|
|
|
+ $('#categoryFilterDiv').find('.daps1').find('span').html($(obj).attr('cateFullNm'));
|
|
|
|
|
+ fnSetCateFilter(cate1No, cate2No, cate3No, cate4No);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ fnSetCateFilter(cate1No, cate2No, cate3No, cate4No, cate5No);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
//****************상품리스트 end **********************************
|
|
//****************상품리스트 end **********************************
|