환불신청 가능금액 체크 스크립트 수정 => 콤마 제거
=> 콤마 제거
@7d32430968cb5ddb928efffe43bf14d2935394d6
--- src/main/webapp/WEB-INF/jsp/uss/ion/pay/RefundRegist.jsp
+++ src/main/webapp/WEB-INF/jsp/uss/ion/pay/RefundRegist.jsp
... | ... | @@ -170,7 +170,7 @@ |
| 170 | 170 |
}); |
| 171 | 171 |
|
| 172 | 172 |
$('#refundMoney').focusout(function(){
|
| 173 |
- if($(this).val() > mberRefundMaxMoney){
|
|
| 173 |
+ if(parseInt($(this).val().replace(/,/gi, ""), 10) > parseInt(mberRefundMaxMoney.replace(/,/gi, ""), 10)){
|
|
| 174 | 174 |
alert("환불 신청 금액은 환불 가능 금액보다 작아야 합니다.");
|
| 175 | 175 |
$(this).val('');
|
| 176 | 176 |
} |
--- src/main/webapp/WEB-INF/jsp/web/pay/PayListRefundAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/pay/PayListRefundAjax.jsp
... | ... | @@ -76,7 +76,8 @@ |
| 76 | 76 |
} |
| 77 | 77 |
}); |
| 78 | 78 |
$('#refundMoney').focusout(function(){
|
| 79 |
- if($(this).val() > <c:out value='${resultRefundVO.mberMoney}'/>){
|
|
| 79 |
+ var mberRefundMaxMoney = "<c:out value='${resultRefundVO.mberMoney}'/>";
|
|
| 80 |
+ if(parseInt($(this).val().replace(/,/gi, ""), 10) > parseInt(mberRefundMaxMoney.replace(/,/gi, ""), 10)){
|
|
| 80 | 81 |
alert("환불 신청 금액은 환불 가능 금액보다 작아야 합니다.");
|
| 81 | 82 |
$(this).val('');
|
| 82 | 83 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?