선거문자 20건 엔터키 문자발송 기능 적용
@b1e6b6b6e9d43df6d7002908abd1903054f22446
--- src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataSMLView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataSMLView.jsp
... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 |
<script type="text/javascript" src="<c:url value='/js/txtSpecialReplace.js?date=202304250001'/>"></script> |
| 10 | 10 |
|
| 11 | 11 |
<!-- --> |
| 12 |
-<script type="text/javascript" src="<c:url value='/publish/js/publish.js'/>"></script> |
|
| 12 |
+<script type="text/javascript" src="<c:url value='/publish/js/publish.js?date=202402060001'/>"></script> |
|
| 13 | 13 |
|
| 14 | 14 |
<style> |
| 15 | 15 |
/* .send_top .send_right .phone_bottom{display:flex;align-items:center;} */
|
... | ... | @@ -4538,7 +4538,11 @@ |
| 4538 | 4538 |
<button type="button" class="btnType btnType10" onclick="javascript:fnTestSend(); return false;">테스트발송</button> |
| 4539 | 4539 |
</div> |
| 4540 | 4540 |
</div> |
| 4541 |
- <!-- Enter키로 발송하기 <div class="use_enter"><input type="checkbox" id=""><label for="">Enter키로 발송하기</label></div>--> |
|
| 4541 |
+ <!-- 엔터키로 발송 체크박스 --> |
|
| 4542 |
+ <div class="use_enter"> |
|
| 4543 |
+ <input type="checkbox" id="enterChk" name="enterChk"> |
|
| 4544 |
+ <label for="enterChk">Enter키로 발송하기</label> |
|
| 4545 |
+ </div> |
|
| 4542 | 4546 |
<div class="rev_selected"> |
| 4543 | 4547 |
<div class="rev_top"> |
| 4544 | 4548 |
<span>날짜 :</span> |
--- src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataView.jsp
... | ... | @@ -959,6 +959,15 @@ |
| 959 | 959 |
|
| 960 | 960 |
} |
| 961 | 961 |
|
| 962 |
+ var chkCalltoCnt = $("input[name=chkCallTo]").length;
|
|
| 963 |
+ |
|
| 964 |
+ if(Number(chkCalltoCnt) == 0){
|
|
| 965 |
+ |
|
| 966 |
+ alert("받는사람을 추가해 주세요.");
|
|
| 967 |
+ return false; |
|
| 968 |
+ } |
|
| 969 |
+ |
|
| 970 |
+ |
|
| 962 | 971 |
//수신번호 리스트 체크하기 |
| 963 | 972 |
var numCnt = 0; |
| 964 | 973 |
var nameList = []; //치환문자 이름 |
... | ... | @@ -1035,8 +1044,17 @@ |
| 1035 | 1044 |
|
| 1036 | 1045 |
} |
| 1037 | 1046 |
|
| 1038 |
- if(confirm("문자를 전송하시겠습니까?")){
|
|
| 1047 |
+ //엔터키로 문자 전송 바로 처리하기 : 엔터키와 엔터키 체크박스 둘다 조건 만족시 메시지 없이 전송처리 |
|
| 1048 |
+ var enterChk = $("#enterChk").is(':checked');
|
|
| 1049 |
+ if(!enterChk || !enterSts){
|
|
| 1039 | 1050 |
|
| 1051 |
+ if(!confirm("문자를 전송하시겠습니까?")){
|
|
| 1052 |
+ return false; |
|
| 1053 |
+ } |
|
| 1054 |
+ |
|
| 1055 |
+ } |
|
| 1056 |
+ |
|
| 1057 |
+ //if(confirm("문자를 전송하시겠습니까?")){
|
|
| 1040 | 1058 |
|
| 1041 | 1059 |
imgFilePath = []; |
| 1042 | 1060 |
$('.thumb_wrap').find('.thumb_img').each(function(idx, el) {
|
... | ... | @@ -1549,7 +1567,7 @@ |
| 1549 | 1567 |
|
| 1550 | 1568 |
} |
| 1551 | 1569 |
|
| 1552 |
- } |
|
| 1570 |
+ //} |
|
| 1553 | 1571 |
|
| 1554 | 1572 |
} |
| 1555 | 1573 |
|
--- src/main/webapp/publish/js/publish.js
+++ src/main/webapp/publish/js/publish.js
... | ... | @@ -53,7 +53,7 @@ |
| 53 | 53 |
|
| 54 | 54 |
if (chkCnt == 0) {
|
| 55 | 55 |
|
| 56 |
- alert("받는사람을 추가해 주세요.");
|
|
| 56 |
+ //alert("받는사람을 추가해 주세요.");
|
|
| 57 | 57 |
return false; |
| 58 | 58 |
|
| 59 | 59 |
} |
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?