선택된 리스트뷰 버튼에 class 및 안내 문구 추가
This commit is contained in:
@ -25,6 +25,7 @@ $.fn.listType = function(type)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
set_cookie("ck_itemlist<?php echo $ca_id; ?>_type", "gallery", 1, g4_cookie_domain);
|
set_cookie("ck_itemlist<?php echo $ca_id; ?>_type", "gallery", 1, g4_cookie_domain);
|
||||||
|
$("button.sct_lst_gallery span").addClass("sct_lst_on").html("<b class=\"sound_only\">활성</b>");
|
||||||
} else {
|
} else {
|
||||||
this.addClass("sct_40");
|
this.addClass("sct_40");
|
||||||
$el.each(function() {
|
$el.each(function() {
|
||||||
@ -33,6 +34,7 @@ $.fn.listType = function(type)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
set_cookie("ck_itemlist<?php echo $ca_id; ?>_type", "list", 1, g4_cookie_domain);
|
set_cookie("ck_itemlist<?php echo $ca_id; ?>_type", "list", 1, g4_cookie_domain);
|
||||||
|
$("button.sct_lst_list span").addClass("sct_lst_on").html("<b class=\"sound_only\">활성</b>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,6 +74,9 @@ $(function() {
|
|||||||
});
|
});
|
||||||
set_cookie("ck_itemlist<?php echo $ca_id; ?>_type", "list", 1, g4_cookie_domain);
|
set_cookie("ck_itemlist<?php echo $ca_id; ?>_type", "list", 1, g4_cookie_domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("button.sct_lst_view span").removeClass("sct_lst_on").html("");
|
||||||
|
$(this).children("span").addClass("sct_lst_on").html("<b class=\"sound_only\">활성</b>");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user