상품 리스트 타입 변경시 원본으로 돌아가는 방법
sct10, 20 등에서 에서 40으로 넘어가는데 style 값이 그대로 유지 됩니다.
shop.list.js 에서 31번째 줄
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
});
를
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
$(this).removeAttr('style');
});
을 넣어주시면 해당되는 리스트에 모든 스타일 값이 제거 됩니다.
shop.list.js 에서 31번째 줄
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
});
를
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
$(this).removeAttr('style');
});
을 넣어주시면 해당되는 리스트에 모든 스타일 값이 제거 됩니다.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 1개