From 279c4135ea0c0655b4c5b5b54f6340a5f80744f5 Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 금, 26 11월 2021 17:13:44 +0900 Subject: [PATCH] 부서 설정 변경[프론트] --- src/main/webapp/scripts/app/customField/customFieldAdd.controller.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js b/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js index 4edbe60..ac901db 100644 --- a/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js +++ b/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js @@ -69,7 +69,8 @@ if (!duplication) { if (!$rootScope.isDefined($scope.vm.form.optionText)) { $scope.vm.form.optionText = ""; - SweetAlert.warning($filter("translate")("customField.emptyInputValue"), $filter("translate")("customField.emptyAddValue")); // �엯�젰 媛� �솗�씤 �븣由�, �엯�젰�븳 媛믪씠 �뾾�뒿�땲�떎. + SweetAlert.warning($filter("translate")("customField.emptyInputValue"), + $filter("translate")("customField.emptyAddValue")); // �엯�젰 媛� �솗�씤 �븣由�, �엯�젰�븳 媛믪씠 �뾾�뒿�땲�떎. return; } $scope.vm.form.options.push($scope.vm.form.optionText); @@ -81,7 +82,8 @@ }, 200); } else { - SweetAlert.warning($filter("translate")("customField.duplicateInputValue"), $filter("translate")("customField.alreadyAddedValue")); // "�엯�젰 媛� 以묐났 �븣由�", "�엯�젰�븳 媛믪씠 �씠誘� 異붽��릺�뼱 �엳�뒿�땲�떎." + SweetAlert.warning($filter("translate")("customField.duplicateInputValue"), + $filter("translate")("customField.alreadyAddedValue")); // "�엯�젰 媛� 以묐났 �븣由�", "�엯�젰�븳 媛믪씠 �씠誘� 異붽��릺�뼱 �엳�뒿�땲�떎." } } @@ -92,7 +94,7 @@ } // �떎以�, �떒�씪 �꽑�깮�씪 寃쎌슦�뿉 - if ($scope.vm.form.customFieldType !== "INPUT") { + if ($scope.vm.form.customFieldType === "MULTI_SELECT" || $scope.vm.form.customFieldType === "SINGLE_SELECT") { // �샃�뀡�씠 1媛� �씠�븯�씪 寃쎌슦�뿉�뒗 ���젆�듃 �깭洹몃�� 留뚮뱾 �닔 �뾾�떎. if ($scope.vm.form.options.length < 1) { return true; @@ -109,7 +111,7 @@ var content = angular.copy($scope.vm.form); content.name = $rootScope.preventXss(content.name); - if ($scope.vm.form.customFieldType !== 'INPUT') { + if ($scope.vm.form.customFieldType === 'MULTI_SELECT'|| $scope.vm.form.customFieldType === "SINGLE_SELECT") { var convertDefaultValues = ""; angular.forEach(content.defaultValue.split("#"), function (value) { -- Gitblit v1.8.0