OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-24 f820bc3406e6fe88660124b28507f21df6b659ab
src/main/webapp/custom_components/js-autocomplete-single/js-autocomplete-single.js
@@ -23,6 +23,7 @@
                page : "=",
                totalPage : "=",
                inputDisabled : "=",
                customInput : "=",
            },
            templateUrl : "custom_components/js-autocomplete-single/js-autocomplete-single.html",
            link : function ($scope, $element, $attrs) {
@@ -33,6 +34,10 @@
                if (!angular.isDefined($scope.inputDisabled)) {
                    $scope.inputDisabled = false;
                }
                /*if (!angular.isDefined($scope.customInput)) {
                    $scope.customInput = false;
                }*/
                $scope.options = [];    //  전체 목록
                $scope.networkSuccess = false;  //  통신 완료 후 화면 표시.
@@ -285,7 +290,9 @@
                            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 = [];
@@ -523,7 +530,9 @@
                                $scope.$apply(function () {
                                    $scope.open = false;
                                    if ($scope.selectedModel == null || $scope.selectedModel.length == 0) {
                                        $scope.search = "";
                                        if (!angular.isDefined($scope.customInput) && !$scope.customInput) {
                                            $scope.search = "";
                                        }
                                    }
                                    $scope.page = 0;
                                    $scope.totalPage = 0;