선거문자 20건 엔터키 문자발송 기능 적용

This commit is contained in:
rosewiper 2024-02-06 12:00:18 +09:00
parent c66d9e0825
commit b1e6b6b6e9
3 changed files with 27 additions and 5 deletions

View File

@ -9,7 +9,7 @@
<script type="text/javascript" src="<c:url value='/js/txtSpecialReplace.js?date=202304250001'/>"></script> <script type="text/javascript" src="<c:url value='/js/txtSpecialReplace.js?date=202304250001'/>"></script>
<!-- --> <!-- -->
<script type="text/javascript" src="<c:url value='/publish/js/publish.js'/>"></script> <script type="text/javascript" src="<c:url value='/publish/js/publish.js?date=202402060001'/>"></script>
<style> <style>
/* .send_top .send_right .phone_bottom{display:flex;align-items:center;} */ /* .send_top .send_right .phone_bottom{display:flex;align-items:center;} */
@ -4538,7 +4538,11 @@ function getMjMsgSentListAll(pageNo) {
<button type="button" class="btnType btnType10" onclick="javascript:fnTestSend(); return false;">테스트발송</button> <button type="button" class="btnType btnType10" onclick="javascript:fnTestSend(); return false;">테스트발송</button>
</div> </div>
</div> </div>
<!-- Enter키로 발송하기 <div class="use_enter"><input type="checkbox" id=""><label for="">Enter키로 발송하기</label></div>--> <!-- 엔터키로 발송 체크박스 -->
<div class="use_enter">
<input type="checkbox" id="enterChk" name="enterChk">
<label for="enterChk">Enter키로 발송하기</label>
</div>
<div class="rev_selected"> <div class="rev_selected">
<div class="rev_top"> <div class="rev_top">
<span>날짜 :</span> <span>날짜 :</span>

View File

@ -959,6 +959,15 @@ function fn_sendMsgData(){
} }
var chkCalltoCnt = $("input[name=chkCallTo]").length;
if(Number(chkCalltoCnt) == 0){
alert("받는사람을 추가해 주세요.");
return false;
}
//수신번호 리스트 체크하기 //수신번호 리스트 체크하기
var numCnt = 0; var numCnt = 0;
var nameList = []; //치환문자 이름 var nameList = []; //치환문자 이름
@ -1035,8 +1044,17 @@ function fn_sendMsgData(){
} }
if(confirm("문자를 전송하시겠습니까?")){ //엔터키로 문자 전송 바로 처리하기 : 엔터키와 엔터키 체크박스 둘다 조건 만족시 메시지 없이 전송처리
var enterChk = $("#enterChk").is(':checked');
if(!enterChk || !enterSts){
if(!confirm("문자를 전송하시겠습니까?")){
return false;
}
}
//if(confirm("문자를 전송하시겠습니까?")){
imgFilePath = []; imgFilePath = [];
$('.thumb_wrap').find('.thumb_img').each(function(idx, el) { $('.thumb_wrap').find('.thumb_img').each(function(idx, el) {
@ -1549,7 +1567,7 @@ function fn_sendMsgData(){
} }
} //}
} }

View File

@ -53,7 +53,7 @@ var publishCommon = {
if (chkCnt == 0) { if (chkCnt == 0) {
alert("받는사람을 추가해 주세요."); //alert("받는사람을 추가해 주세요.");
return false; return false;
} }