쇼핑몰: #275 상품목록 스킨명 변경에 따른 리스트 유형 변경 기능용 스크립트 수정
This commit is contained in:
@ -6,10 +6,10 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
// 리스트 타입 쿠키가 있을 경우 바로 적용
|
// 리스트 타입 쿠키가 있을 경우 바로 적용
|
||||||
if(itemlist_type = get_cookie("ck_itemlist_type")) {
|
if(itemlist_type = get_cookie("ck_itemlist_type")) {
|
||||||
if(itemlist_type == "gallery") {
|
if(itemlist_type == "gallery") {
|
||||||
$("ul.sct").removeClass("sct_13");
|
$("ul.sct").removeClass("sct_40");
|
||||||
set_cookie("ck_itemlist_type", "gallery", 1, g4_cookie_domain);
|
set_cookie("ck_itemlist_type", "gallery", 1, g4_cookie_domain);
|
||||||
} else {
|
} else {
|
||||||
$("ul.sct").addClass("sct_13");
|
$("ul.sct").addClass("sct_40");
|
||||||
set_cookie("ck_itemlist_type", "list", 1, g4_cookie_domain);
|
set_cookie("ck_itemlist_type", "list", 1, g4_cookie_domain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -17,10 +17,10 @@ if(itemlist_type = get_cookie("ck_itemlist_type")) {
|
|||||||
$(function() {
|
$(function() {
|
||||||
$("button.sct_lst_view").on("click", function() {
|
$("button.sct_lst_view").on("click", function() {
|
||||||
if($(this).hasClass("sct_lst_gallery")) {
|
if($(this).hasClass("sct_lst_gallery")) {
|
||||||
$("ul.sct").removeClass("sct_13");
|
$("ul.sct").removeClass("sct_40");
|
||||||
set_cookie("ck_itemlist_type", "gallery", 1, g4_cookie_domain);
|
set_cookie("ck_itemlist_type", "gallery", 1, g4_cookie_domain);
|
||||||
} else {
|
} else {
|
||||||
$("ul.sct").addClass("sct_13");
|
$("ul.sct").addClass("sct_40");
|
||||||
set_cookie("ck_itemlist_type", "list", 1, g4_cookie_domain);
|
set_cookie("ck_itemlist_type", "list", 1, g4_cookie_domain);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user