Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Fix wait cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
oterral committed Feb 19, 2014
1 parent 383b43a commit 559b548
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/tooltip/TooltipDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
return featureFound;
};

// Find features for bod layers
// Find features for all type of layers
function findFeatures(coordinate, size, mapExtent) {
var identifyUrl = $scope.options.identifyUrlTemplate
.replace('{Topic}', currentTopic),
Expand Down Expand Up @@ -178,7 +178,9 @@
// added and then removed. With $timeout we force the right
// order of execution.
$timeout(function() {
bodyEl.addClass(waitclass);
if (responseCount < identifyCount) {
bodyEl.addClass(waitclass);
}
}, 0);

for (i = 0; i < identifyCount; i++) {
Expand Down

0 comments on commit 559b548

Please sign in to comment.