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
This commit is contained in:
@@ -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");
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user