납부자번호 복사 함수 수정

main
이범준 4 months ago
parent fcef6f3d9d
commit bd212b3250

@ -379,7 +379,20 @@ $(document).ready(function() {
}
if(cur != null){
navigator.clipboard.writeText(cur.RTPYR_NO);
if(window.isSecureContext){
navigator.clipboard.writeText(cur.RTPYR_NO);
} else {
var textArea = document.createElement("textarea");
textArea.style.position = "fixed";
textArea.value = cur.RTPYR_NO;
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
document.execCommand('copy');
document.body.removeChild(textArea);
}
$("#toastText--${pageName}").html("납부자번호가 복사되었습니다.");
$P.toast.show();
}

Loading…
Cancel
Save