From 6570f44d7cd47d774f8e0d1f7f62d703bc41dfe7 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 17 Apr 2009 16:35:17 +0000 Subject: [PATCH] Removing the wait cursor if no request is sent by the control. In the case of hover, this tries to remove what doesn't exist (which causes no harm) - but the same is done when hover actually results in a request. r=bartvde (closes #2051) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9305 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/WMSGetFeatureInfo.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/OpenLayers/Control/WMSGetFeatureInfo.js b/lib/OpenLayers/Control/WMSGetFeatureInfo.js index df5d1b09c9..c65d1cc3f9 100644 --- a/lib/OpenLayers/Control/WMSGetFeatureInfo.js +++ b/lib/OpenLayers/Control/WMSGetFeatureInfo.js @@ -365,6 +365,9 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, { if (options.hover === true) { this.hoverRequest = response.priv; } + } else { + // Reset the cursor. + OpenLayers.Element.removeClass(this.map.viewPortDiv, "olCursorWait"); } },