| | |
| | | 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); |
| | |
| | | }, 200); |
| | | } |
| | | else { |
| | | SweetAlert.warning($filter("translate")("customField.duplicateInputValue"), $filter("translate")("customField.alreadyAddedValue")); // "입력 값 중복 알림", "입력한 값이 이미 추가되어 있습니다." |
| | | SweetAlert.warning($filter("translate")("customField.duplicateInputValue"), |
| | | $filter("translate")("customField.alreadyAddedValue")); // "입력 값 중복 알림", "입력한 값이 이미 추가되어 있습니다." |
| | | } |
| | | } |
| | | |