Commit d09649bc39a22fa62aa2fddc833750f9b9400e7e

Authored by Carlos Alberto
1 parent 07591c7c
Exists in master

Revert da alteração AutoCompleteDirective

cit-portal-web/src/main/webapp/assets/js/angular/custom/directive/AutoCompleteDirective.js
... ... @@ -25,8 +25,6 @@ citApp.directive("autoComplete", ["$translate", "$timeout", function($translate,
25 25 restrict : 'E',
26 26 templateUrl : 'assets/js/angular/custom/directive/html/auto-complete.html',
27 27 controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
28   -
29   - $scope.appController = angular.element("#citapp-controller").scope();
30 28  
31 29 if($scope.id === undefined){
32 30 $scope.id = $attrs['ngModel'];
... ... @@ -87,13 +85,7 @@ citApp.directive("autoComplete", ["$translate", "$timeout", function($translate,
87 85 return [];
88 86 });
89 87 }else{
90   - $scope.appController.setLoadingPesquisa(true);
91   - return $scope.find({value : viewValue}).then(function(result) {
92   - $scope.appController.setLoadingPesquisa(false);
93   - return result;
94   - }, function() {
95   - $scope.appController.setLoadingPesquisa(false);
96   - });
  88 + return $scope.find({value : viewValue});
97 89 }
98 90 };
99 91  
... ...