--- src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
... | ... | @@ -1119,20 +1119,8 @@ |
| 1119 | 1119 |
.map(num => removeDash(num.trim())) |
| 1120 | 1120 |
.filter(num => num !== "") |
| 1121 | 1121 |
.filter(num => isValidPhoneNumber(num)); // 유효한 번호만 필터링; |
| 1122 |
- |
|
| 1123 |
- console.log('numbers : ', numbers);
|
|
| 1124 |
- const addrData = processPhoneNumbers(numbers); |
|
| 1125 | 1122 |
|
| 1126 |
- |
|
| 1127 |
- // 기존 tableL의 데이터를 가져옵니다. |
|
| 1128 |
- var existingData = tableL.getData(); |
|
| 1129 |
- |
|
| 1130 |
- // 데이터 병합 및 중복 제거 |
|
| 1131 |
- const result = mergeAndValidateData(existingData, addrData); |
|
| 1132 |
- |
|
| 1133 |
- |
|
| 1134 |
- // 테이블 데이터 업데이트 |
|
| 1135 |
- if (!updateTableData(tableL, result)) return false; |
|
| 1123 |
+ fn_phoneAddProcess(tableL, numbers); |
|
| 1136 | 1124 |
|
| 1137 | 1125 |
// textarea 초기화 |
| 1138 | 1126 |
textarea.val(''); // jQuery 객체에서 값을 초기화할 때는 .val('') 사용
|
... | ... | @@ -1302,19 +1290,8 @@ |
| 1302 | 1290 |
return false; |
| 1303 | 1291 |
} |
| 1304 | 1292 |
|
| 1305 |
- console.log('numbers : ', numbers);
|
|
| 1306 |
- const addrData = processPhoneNumbers(numbers); |
|
| 1307 | 1293 |
|
| 1308 |
- |
|
| 1309 |
- // 기존 tableL의 데이터를 가져옵니다. |
|
| 1310 |
- var existingData = tableL.getData(); |
|
| 1311 |
- |
|
| 1312 |
- // 데이터 병합 및 중복 제거 |
|
| 1313 |
- const result = mergeAndValidateData(existingData, addrData); |
|
| 1314 |
- |
|
| 1315 |
- |
|
| 1316 |
- // 테이블 데이터 업데이트 |
|
| 1317 |
- if (!updateTableData(tableL, result)) return false; |
|
| 1294 |
+ fn_phoneAddProcess(tableL, numbers); |
|
| 1318 | 1295 |
|
| 1319 | 1296 |
|
| 1320 | 1297 |
$("#btnLatestAddPhoneClose").trigger("click");
|
... | ... | @@ -1340,19 +1317,8 @@ |
| 1340 | 1317 |
return false; |
| 1341 | 1318 |
} |
| 1342 | 1319 |
|
| 1343 |
- console.log('numbers : ', numbers);
|
|
| 1344 |
- const addrData = processPhoneNumbers(numbers); |
|
| 1345 | 1320 |
|
| 1346 |
- |
|
| 1347 |
- // 기존 tableL의 데이터를 가져옵니다. |
|
| 1348 |
- var existingData = tableL.getData(); |
|
| 1349 |
- |
|
| 1350 |
- // 데이터 병합 및 중복 제거 |
|
| 1351 |
- const result = mergeAndValidateData(existingData, addrData); |
|
| 1352 |
- |
|
| 1353 |
- |
|
| 1354 |
- // 테이블 데이터 업데이트 |
|
| 1355 |
- if (!updateTableData(tableL, result)) return false; |
|
| 1321 |
+ fn_phoneAddProcess(tableL, numbers); |
|
| 1356 | 1322 |
|
| 1357 | 1323 |
|
| 1358 | 1324 |
$("#btnLatestAddPhoneClose").trigger("click");
|
... | ... | @@ -1392,19 +1358,8 @@ |
| 1392 | 1358 |
return false; |
| 1393 | 1359 |
} |
| 1394 | 1360 |
|
| 1395 |
- console.log('numbers : ', numbers);
|
|
| 1396 |
- const addrData = processPhoneNumbers(numbers); |
|
| 1397 | 1361 |
|
| 1398 |
- |
|
| 1399 |
- // 기존 tableL의 데이터를 가져옵니다. |
|
| 1400 |
- var existingData = tableL.getData(); |
|
| 1401 |
- |
|
| 1402 |
- // 데이터 병합 및 중복 제거 |
|
| 1403 |
- const result = mergeAndValidateData(existingData, addrData); |
|
| 1404 |
- |
|
| 1405 |
- |
|
| 1406 |
- // 테이블 데이터 업데이트 |
|
| 1407 |
- if (!updateTableData(tableL, result)) return false; |
|
| 1362 |
+ fn_phoneAddProcess(tableL, numbers); |
|
| 1408 | 1363 |
|
| 1409 | 1364 |
|
| 1410 | 1365 |
$("#btnLatestAddPhoneClose").trigger("click");
|
... | ... | @@ -1430,19 +1385,8 @@ |
| 1430 | 1385 |
return false; |
| 1431 | 1386 |
} |
| 1432 | 1387 |
|
| 1433 |
- console.log('numbers : ', numbers);
|
|
| 1434 |
- const addrData = processPhoneNumbers(numbers); |
|
| 1435 | 1388 |
|
| 1436 |
- |
|
| 1437 |
- // 기존 tableL의 데이터를 가져옵니다. |
|
| 1438 |
- var existingData = tableL.getData(); |
|
| 1439 |
- |
|
| 1440 |
- // 데이터 병합 및 중복 제거 |
|
| 1441 |
- const result = mergeAndValidateData(existingData, addrData); |
|
| 1442 |
- |
|
| 1443 |
- |
|
| 1444 |
- // 테이블 데이터 업데이트 |
|
| 1445 |
- if (!updateTableData(tableL, result)) return false; |
|
| 1389 |
+ fn_phoneAddProcess(tableL, numbers); |
|
| 1446 | 1390 |
|
| 1447 | 1391 |
|
| 1448 | 1392 |
$("#btnLatestAddPhoneClose").trigger("click");
|
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?