OWL ITS + 탐지시스템(인터넷 진흥원)
src/main/webapp/scripts/app/user/userAdd.controller.js
@@ -14,8 +14,7 @@
                $scope.fn = {
                    formSubmit : formSubmit,    //  폼 전송
                    formCheck : formCheck,  //  폼 체크
                    onFileSelect : onFileSelect, //  프로필 업로드
                    autoHypenPhone : autoHypenPhone // 연락처 입력시 - 자동 입력
                    onFileSelect : onFileSelect //  프로필 업로드
                };
                $scope.vm = {
@@ -45,36 +44,7 @@
                    }
                }
                //  연락처 입력시 - 자동 입력
                function autoHypenPhone() {
                    var str = $scope.vm.form.phone
                    str.replace(/^[0-9]/g, '');
                    var tmp = '';
                    if (str.length < 4) {
                        return str;
                    } else if (str.length < 7) {
                        tmp += str.substr(0, 3);
                        tmp += '-';
                        tmp += str.substr(3);
                        $scope.vm.form.phone = tmp;
                    } else if (str.length < 11) {
                        tmp += str.substr(0, 3);
                        tmp += '-';
                        tmp += str.substr(3, 3);
                        tmp += '-';
                        tmp += str.substr(6);
                        $scope.vm.form.phone = tmp;
                    } else {
                        tmp += str.substr(0, 3);
                        tmp += '-';
                        tmp += str.substr(3, 4);
                        tmp += '-';
                        tmp += str.substr(7);
                        $scope.vm.form.phone = tmp;
                    }
                    return str
                }
                // 폼 체크
                function formCheck(formInvalid) {
                    if (formInvalid) {
                        return true;
@@ -99,6 +69,7 @@
                    return false;
                }
                // 폼 전송
                function formSubmit() {
                    $rootScope.spinner = true;  //  프로그래스 바
@@ -107,7 +78,6 @@
                    content.workspaceName = $rootScope.preventXss(content.workspaceName);
                    content.password = CryptoJS.SHA512(content.password).toString();
                    content.language = $rootScope.language; //  기본 언어
                    content.phone = content.phone.replace(/\-/g,'');
                    User.add({
                        method : "POST",