php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -18,13 +18,13 @@ function certify_win_open(type, url, event)
|
||||
}
|
||||
else if(type == 'kcp-hp')
|
||||
{
|
||||
if($("input[name=veri_up_hash]").size() < 1)
|
||||
if($("input[name=veri_up_hash]").length < 1)
|
||||
$("input[name=cert_no]").after('<input type="hidden" name="veri_up_hash" value="">');
|
||||
|
||||
if( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 )
|
||||
{
|
||||
var $frm = $(event.target.form);
|
||||
if($("#kcp_cert").size() < 1) {
|
||||
if($("#kcp_cert").length < 1) {
|
||||
$frm.wrap('<div id="cert_info"></div>');
|
||||
|
||||
$("#cert_info").append('<form name="form_temp" method="post">');
|
||||
@ -66,7 +66,7 @@ function certify_win_open(type, url, event)
|
||||
var $frm = $(event.target.form),
|
||||
lgu_cert = "lgu_cert";
|
||||
|
||||
if($("#lgu_cert").size() < 1) {
|
||||
if($("#lgu_cert").length < 1) {
|
||||
$frm.wrap('<div id="cert_info"></div>');
|
||||
|
||||
$("#cert_info").append('<form name="form_temp" method="post">');
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
var $element = this.find(cfg.element);
|
||||
var $this = this;
|
||||
|
||||
if($element.size() < 1)
|
||||
if($element.length < 1)
|
||||
return;
|
||||
|
||||
function item_arrange()
|
||||
|
||||
@ -89,7 +89,7 @@ function menu_rearrange(el)
|
||||
$gnb_1dli = $(".gnb_1dli:eq("+i+")");
|
||||
w1 = $gnb_1dli.outerWidth();
|
||||
|
||||
if($gnb_1dli.find(".gnb_2dul").size())
|
||||
if($gnb_1dli.find(".gnb_2dul").length)
|
||||
w2 = $gnb_1dli.find(".gnb_2dli > a").outerWidth(true);
|
||||
else
|
||||
w2 = w1;
|
||||
|
||||
20
js/shop.js
20
js/shop.js
@ -8,7 +8,7 @@ $(function() {
|
||||
/* 가상커서 ctrl keyup 이베트 대응 */
|
||||
/*
|
||||
$(document).on("keyup", "select.it_option", function(e) {
|
||||
var sel_count = $("select.it_option").size();
|
||||
var sel_count = $("select.it_option").length;
|
||||
var idx = $("select.it_option").index($(this));
|
||||
var code = e.keyCode;
|
||||
var val = $(this).val();
|
||||
@ -25,7 +25,7 @@ $(function() {
|
||||
|
||||
/* 키보드 접근 후 옵션 선택 Enter keydown 이벤트 대응 */
|
||||
$(document).on("keydown", "select.it_option", function(e) {
|
||||
var sel_count = $("select.it_option").size();
|
||||
var sel_count = $("select.it_option").length;
|
||||
var idx = $("select.it_option").index($(this));
|
||||
var code = e.keyCode;
|
||||
var val = $(this).val();
|
||||
@ -52,7 +52,7 @@ $(function() {
|
||||
}
|
||||
|
||||
$(document).on("change", "select.it_option", function() {
|
||||
var sel_count = $("select.it_option").size(),
|
||||
var sel_count = $("select.it_option").length,
|
||||
idx = $("select.it_option").index($(this)),
|
||||
val = $(this).val(),
|
||||
it_id = $("input[name='it_id[]']").val(),
|
||||
@ -215,10 +215,10 @@ $(function() {
|
||||
var $el = $(this).closest("li");
|
||||
var del_exec = true;
|
||||
|
||||
if($("#sit_sel_option .sit_spl_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_spl_list").length > 0) {
|
||||
// 선택옵션이 하나이상인지
|
||||
if($el.hasClass("sit_opt_list")) {
|
||||
if($(".sit_opt_list").size() <= 1)
|
||||
if($(".sit_opt_list").length <= 1)
|
||||
del_exec = false;
|
||||
}
|
||||
}
|
||||
@ -406,25 +406,25 @@ function add_sel_option(type, id, option, price, stock)
|
||||
opt += "<button type=\"button\" class=\"sit_opt_del btn_frmline\">삭제</button></div>";
|
||||
opt += "</li>";
|
||||
|
||||
if($("#sit_sel_option > ul").size() < 1) {
|
||||
if($("#sit_sel_option > ul").length < 1) {
|
||||
$("#sit_sel_option").html("<ul id=\"sit_opt_added\"></ul>");
|
||||
$("#sit_sel_option > ul").html(opt);
|
||||
} else{
|
||||
if(type) {
|
||||
if($("#sit_sel_option .sit_spl_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_spl_list").length > 0) {
|
||||
$("#sit_sel_option .sit_spl_list:last").after(opt);
|
||||
} else {
|
||||
if($("#sit_sel_option .sit_opt_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_opt_list").length > 0) {
|
||||
$("#sit_sel_option .sit_opt_list:last").after(opt);
|
||||
} else {
|
||||
$("#sit_sel_option > ul").html(opt);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if($("#sit_sel_option .sit_opt_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_opt_list").length > 0) {
|
||||
$("#sit_sel_option .sit_opt_list:last").after(opt);
|
||||
} else {
|
||||
if($("#sit_sel_option .sit_spl_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_spl_list").length > 0) {
|
||||
$("#sit_sel_option .sit_spl_list:first").before(opt);
|
||||
} else {
|
||||
$("#sit_sel_option > ul").html(opt);
|
||||
|
||||
@ -46,7 +46,7 @@ jQuery(function ($) {
|
||||
var id = "";
|
||||
var value, info, sel_opt, item, price, stock, run_error = false;
|
||||
var option = sep = "";
|
||||
var count = $sel.size();
|
||||
var count = $sel.length;
|
||||
|
||||
if(count > 0) {
|
||||
$sel.each(function(index) {
|
||||
@ -241,7 +241,7 @@ jQuery(function ($) {
|
||||
$(document).on("change", "select.it_option", function() {
|
||||
var $frm = $(this).closest("form");
|
||||
var $sel = $frm.find("select.it_option");
|
||||
var sel_count = $sel.size();
|
||||
var sel_count = $sel.length;
|
||||
var idx = $sel.index($(this));
|
||||
var val = $(this).val();
|
||||
var it_id = $frm.find("input[name='it_id[]']").val();
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
$.fn.listType = function(type)
|
||||
{
|
||||
var $el = this.find("li.sct_li");
|
||||
var count = $el.size();
|
||||
var count = $el.length;
|
||||
if(count < 1)
|
||||
return;
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ $(function() {
|
||||
}
|
||||
|
||||
var $items = $(data.item).find("li");
|
||||
var cnt = $items.size();
|
||||
var cnt = $items.length;
|
||||
|
||||
if(cnt < 1) {
|
||||
alert("등록된 상품이 더 이상없습니다.");
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
var $btns;
|
||||
|
||||
var idx = cfg.startSlide;
|
||||
var count = $slides.size();
|
||||
var count = $slides.length;
|
||||
var width, height;
|
||||
var tab = null;
|
||||
|
||||
@ -118,7 +118,7 @@
|
||||
var $btns = this.find(""+cfg.buttons+"");
|
||||
|
||||
var idx = cfg.startSlide;
|
||||
var count = $slides.size();
|
||||
var count = $slides.length;
|
||||
var width, outerW;
|
||||
|
||||
if(count < 1)
|
||||
|
||||
@ -88,25 +88,25 @@ jQuery(function($){
|
||||
opt += "<button type=\"button\" class=\"sit_opt_del\"><i class=\"fa fa-times\" aria-hidden=\"true\"></i><span class=\"sound_only\">삭제</span></button></div>";
|
||||
opt += "</li>";
|
||||
|
||||
if($("#sit_sel_option > ul").size() < 1) {
|
||||
if($("#sit_sel_option > ul").length < 1) {
|
||||
$("#sit_sel_option").html("<ul id=\"sit_opt_added\"></ul>");
|
||||
$("#sit_sel_option > ul").html(opt);
|
||||
} else{
|
||||
if(type) {
|
||||
if($("#sit_sel_option .sit_spl_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_spl_list").length > 0) {
|
||||
$("#sit_sel_option .sit_spl_list:last").after(opt);
|
||||
} else {
|
||||
if($("#sit_sel_option .sit_opt_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_opt_list").length > 0) {
|
||||
$("#sit_sel_option .sit_opt_list:last").after(opt);
|
||||
} else {
|
||||
$("#sit_sel_option > ul").html(opt);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if($("#sit_sel_option .sit_opt_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_opt_list").length > 0) {
|
||||
$("#sit_sel_option .sit_opt_list:last").after(opt);
|
||||
} else {
|
||||
if($("#sit_sel_option .sit_spl_list").size() > 0) {
|
||||
if($("#sit_sel_option .sit_spl_list").length > 0) {
|
||||
$("#sit_sel_option .sit_spl_list:first").before(opt);
|
||||
} else {
|
||||
$("#sit_sel_option > ul").html(opt);
|
||||
|
||||
Reference in New Issue
Block a user