| | |
| | | page : "=", |
| | | totalPage : "=", |
| | | inputDisabled : "=", |
| | | customInput : "=", |
| | | }, |
| | | templateUrl : "custom_components/js-input-autocomplete/js-input-autocomplete.html", |
| | | link: function ($scope, $element, $attrs) { |
| | |
| | | $scope.$apply(function () { |
| | | $scope.open = false; |
| | | $scope.page = 0; |
| | | $scope.search = ""; |
| | | if (!angular.isDefined($scope.customInput) && !$scope.customInput) { |
| | | $scope.search = ""; |
| | | } |
| | | $scope.totalPage = 0; |
| | | $scope.options = []; |
| | | $scope.networkSuccess = false; |
| | |
| | | switch (event.keyCode) { |
| | | case 9 : // 탭키 닫기 |
| | | $scope.open = false; |
| | | $scope.search = ""; |
| | | if (!angular.isDefined($scope.customInput) && !$scope.customInput) { |
| | | $scope.search = ""; |
| | | } |
| | | $scope.page = 0; |
| | | $scope.totalPage = 0; |
| | | $scope.options = []; |