From ad7e60c5d5a090160c6b9be63c02a75a6c369b91 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 금, 07 1월 2022 14:10:15 +0900
Subject: [PATCH] Merge branch 'master' of http://192.168.0.25:9001/r/owl-kisa

---
 src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js |   52 +---------------------------------------------------
 1 files changed, 1 insertions(+), 51 deletions(-)

diff --git a/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js b/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js
index 1457b34..8da6eeb 100644
--- a/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js
+++ b/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js
@@ -15,8 +15,7 @@
                     formSubmit : formSubmit,    //  �뤌 �쟾�넚
                     formCheck : formCheck,   //  �뤌 泥댄겕
                     getIssueIspFieldListCallBack : getIssueIspFieldListCallBack,
-                    getIssueHostingFieldListCallBack : getIssueHostingFieldListCallBack,
-                    autoHyphenPhone : autoHyphenPhone // �뿰�씫泥� �엯�젰�떆 �븯�씠�뵂 �옄�룞 �엯�젰
+                    getIssueHostingFieldListCallBack : getIssueHostingFieldListCallBack
                 };
 
                 $scope.vm = {
@@ -73,60 +72,11 @@
                     $scope.vm.form.hostingId = result[0].id;
                 });
 
-                //  �뿰�씫泥� �엯�젰�떆 �븯�씠�뵂 �옄�룞 �엯�젰
-                function autoHyphenPhone() {
-                    let phone = $scope.vm.form.tel
-                    let seoul = $scope.vm.form.tel
 
-                    // �빖�뱶�룿 諛� 吏�諛� 吏��뿭踰덊샇 議곌굔
-                    phone.replace(/^[0-9]/g, '');
-                    // �꽌�슱 吏��뿭踰덊샇 議곌굔
-                    seoul.replace(/^[0-9]/g, '');
-                    var tmp = '';
-
-                    if (phone.length < 4) {
-                        return phone;
-                    } else if (phone.length < 7) {
-                        tmp += phone.substr(0, 3);
-                        tmp += '-';
-                        tmp += phone.substr(3);
-                        $scope.vm.form.tel = tmp;
-                    } else if (seoul.substring(0, 2) == "02" && seoul.length == 9) {    // �꽌�슱 吏��뿭踰덊샇 議곌굔
-                        tmp += seoul.substring(0, 2);
-                        tmp += '-';
-                        tmp += seoul.substring(2, 5);
-                        tmp += '-';
-                        tmp += seoul.substr(5);
-                        $scope.vm.form.tel = tmp;
-                    } else if (seoul.substring(0, 2) == "02" && seoul.length == 10) {   // �꽌�슱 吏��뿭踰덊샇 議곌굔
-                        tmp += seoul.substring(0, 2);
-                        tmp += '-';
-                        tmp += seoul.substring(2, 6);
-                        tmp += '-';
-                        tmp += seoul.substr(6);
-                        $scope.vm.form.tel = tmp;
-                    } else if (phone.length < 11) {     // �빖�뱶�룿 諛� 吏�諛� 吏��뿭踰덊샇 議곌굔
-                        tmp += phone.substr(0, 3);
-                        tmp += '-';
-                        tmp += phone.substr(3, 3);
-                        tmp += '-';
-                        tmp += phone.substr(6);
-                        $scope.vm.form.tel = tmp;
-                    } else {                           // �빖�뱶�룿 諛� 吏�諛� 吏��뿭踰덊샇 議곌굔
-                        tmp += phone.substr(0, 3);
-                        tmp += '-';
-                        tmp += phone.substr(3, 4);
-                        tmp += '-';
-                        tmp += phone.substr(7);
-                        $scope.vm.form.tel = tmp;
-                    }
-                    return phone;
-                }
 
                 //  �뤌 �쟾�넚
                 function formSubmit(condition) {
                     $rootScope.spinner = true;
-                    $scope.vm.form.tel = $scope.vm.form.tel.replace(/\-/g,'');  // �쟾�솕踰덊샇瑜� 蹂대궪�븧 �븯�씠�뵂�쓣 �젣嫄고빐�꽌 DB�뿉 ���옣
 
                     var content = {
                         name : $rootScope.preventXss($scope.vm.form.name),    //  �뾽泥대챸

--
Gitblit v1.8.0