| | |
| | | source : '&', |
| | | page : "=", |
| | | totalPage : "=", |
| | | inputDisabled : "=", |
| | | inputDisabled : "=?", |
| | | customInput : "=", |
| | | }, |
| | | templateUrl : "custom_components/js-autocomplete-single/js-autocomplete-single.html", |
| | |
| | | var blank_pattern = /^\s+|\s+$/g; |
| | | |
| | | // 입력 필드 비활성화 |
| | | if (!angular.isDefined($scope.inputDisabled)) { |
| | | if (!$rootScope.isDefined($scope.inputDisabled)) { |
| | | $scope.inputDisabled = false; |
| | | } |
| | | |
| | |
| | | function toggleDropdown() { |
| | | // 아이템이 선택되어 있을 경우 목록 레이어는 표시될 수 없다. |
| | | $scope.open = true; |
| | | if ($scope.selectedModel != null && $scope.selectedModel.length > 0) { |
| | | if ($rootScope.isDefined($scope.selectedModel) && $scope.selectedModel.length > 0) { |
| | | $scope.open = false; |
| | | $scope.options = []; |
| | | } |