diff --git a/cit-portal-web/src/main/webapp/assets/js/angular/custom/directive/AutoCompleteDirective.js b/cit-portal-web/src/main/webapp/assets/js/angular/custom/directive/AutoCompleteDirective.js index 93c19b2..eeaf63d 100644 --- a/cit-portal-web/src/main/webapp/assets/js/angular/custom/directive/AutoCompleteDirective.js +++ b/cit-portal-web/src/main/webapp/assets/js/angular/custom/directive/AutoCompleteDirective.js @@ -25,8 +25,6 @@ citApp.directive("autoComplete", ["$translate", "$timeout", function($translate, restrict : 'E', templateUrl : 'assets/js/angular/custom/directive/html/auto-complete.html', controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) { - - $scope.appController = angular.element("#citapp-controller").scope(); if($scope.id === undefined){ $scope.id = $attrs['ngModel']; @@ -87,13 +85,7 @@ citApp.directive("autoComplete", ["$translate", "$timeout", function($translate, return []; }); }else{ - $scope.appController.setLoadingPesquisa(true); - return $scope.find({value : viewValue}).then(function(result) { - $scope.appController.setLoadingPesquisa(false); - return result; - }, function() { - $scope.appController.setLoadingPesquisa(false); - }); + return $scope.find({value : viewValue}); } }; -- libgit2 0.21.2