환불신청 가능금액 체크 스크립트 수정

=> 콤마 제거
This commit is contained in:
itn 2023-08-16 09:59:10 +09:00
parent bfcc5a0755
commit 7d32430968
2 changed files with 3 additions and 2 deletions

View File

@ -170,7 +170,7 @@ $(document).ready(function() {
});
$('#refundMoney').focusout(function(){
if($(this).val() > mberRefundMaxMoney){
if(parseInt($(this).val().replace(/,/gi, ""), 10) > parseInt(mberRefundMaxMoney.replace(/,/gi, ""), 10)){
alert("환불 신청 금액은 환불 가능 금액보다 작아야 합니다.");
$(this).val('');
}

View File

@ -76,7 +76,8 @@ $(document).ready(function() {
}
});
$('#refundMoney').focusout(function(){
if($(this).val() > <c:out value='${resultRefundVO.mberMoney}'/>){
var mberRefundMaxMoney = "<c:out value='${resultRefundVO.mberMoney}'/>";
if(parseInt($(this).val().replace(/,/gi, ""), 10) > parseInt(mberRefundMaxMoney.replace(/,/gi, ""), 10)){
alert("환불 신청 금액은 환불 가능 금액보다 작아야 합니다.");
$(this).val('');
}