Commit c58661e8 authored by platyhouse's avatar platyhouse

- encrypted

parent bef6c6ab
......@@ -32,6 +32,16 @@
return num.toFixed(0).replace(/(\d)(?=(\d{3})+$)/g, "$1,");
}
function ptyIsEmpty(str){
if(typeof str == "undefined" || str == null || str == "")
return true;
else
return false ;
}
출처: https://fruitdev.tistory.com/200 [과일가게 개발자]
(function ($) {
$.fn.optdel = function () {
......@@ -384,7 +394,12 @@
// console.log(opt);
// console.log(opt.inven);
} else {
strname += ' (' + $number(opt.price) + '원)';
// console.log("opt.price = ");
// console.log(opt.price);
if (!ptyIsEmpty(opt.price))
strname += ' (' + $number(opt.price) + '원)';
else
strname += ' (' + "9999999" + '원)';
}
//옵션
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment