From 559b548fbf36eac6a43e3d91533c3fcdea567ea4 Mon Sep 17 00:00:00 2001 From: oterral Date: Wed, 19 Feb 2014 14:40:17 +0100 Subject: [PATCH] Fix wait cursor --- src/components/tooltip/TooltipDirective.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/tooltip/TooltipDirective.js b/src/components/tooltip/TooltipDirective.js index 3db4f9f484..b7ddd53671 100644 --- a/src/components/tooltip/TooltipDirective.js +++ b/src/components/tooltip/TooltipDirective.js @@ -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), @@ -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++) {