친구톡 테스트 번호 삭제 및 imgLink 추가

This commit is contained in:
hehihoho3@gmail.com 2025-07-30 09:55:45 +09:00
parent 49d01ac119
commit d1e1244cd5

View File

@ -629,6 +629,7 @@ function getTemplateImagUrl(){
$('#imgTitle').removeClass('file_none')
.text(fileName);
$('#imgLinkTemp').val($('#imgLink').val()); // 회색 처리 + 입력 불가
$('#imgLink').prop('disabled', true); // 회색 처리 + 입력 불가
@ -1146,9 +1147,7 @@ function fn_sendMsgData(){
if(!confirm("친구톡을 발송하시겠습니까?")){
return false;
}
@ -1170,7 +1169,6 @@ function fn_sendMsgData(){
$('input[name^="buttonVOList"]').each(function() {
let nameAttr = $(this).attr('name');
let match = nameAttr.match(/buttonVOList\[(\d+)\]\.(\w+)/);
if (match) {
let index = parseInt(match[1]);
let key = match[2];
@ -1183,6 +1181,7 @@ function fn_sendMsgData(){
// 3. formData에 배열로 추가
formData["buttonVOList"] = buttonList;
// 회색 처리 + 입력 불가
// 4. 기존의 buttonVOList[0].xxx 형태 제거
Object.keys(formData).forEach(function(key) {
@ -1196,6 +1195,7 @@ function fn_sendMsgData(){
delete formData[key];
});
formData["imgLink"] = $('#imgLinkTemp').val();
// 빈 값 제거
removeEmptyValues(formData);
@ -2097,7 +2097,7 @@ function updateButtons(){
<div class="clearfix receipt_num">
<div class="receipt_num_top">
<label for="callTo" class="label">받는 번호입력</label>
<input type="text" value="01012341234" placeholder="번호를 입력하세요" id="callTo" name="callTo" onfocus="this.placeholder=''" onblur="this.placeholder='번호를 입력하세요'" style="width:340px;">
<input type="text" value="" placeholder="번호를 입력하세요" id="callTo" name="callTo" onfocus="this.placeholder=''" onblur="this.placeholder='번호를 입력하세요'" style="width:340px;">
<button type="button" class="btnType btnType6 addCallToF">번호추가</button>
<span><span class="vMiddle">*</span> 중복번호는 한번만 발송됩니다.</span>
</div>