From: <sp...@us...> - 2011-01-05 13:10:08
|
Revision: 7088 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=7088&view=rev Author: sppigot Date: 2011-01-05 13:10:02 +0000 (Wed, 05 Jan 2011) Log Message: ----------- When region is set to '' (ie. any), call resetMiniMaps instead of old code which was trying to do something similar Modified Paths: -------------- trunk/web/src/main/webapp/scripts/gn_search.js Modified: trunk/web/src/main/webapp/scripts/gn_search.js =================================================================== --- trunk/web/src/main/webapp/scripts/gn_search.js 2011-01-05 12:20:34 UTC (rev 7087) +++ trunk/web/src/main/webapp/scripts/gn_search.js 2011-01-05 13:10:02 UTC (rev 7088) @@ -559,26 +559,8 @@ function doRegionSearch(regionlist) { var region = $(regionlist).value; - if(region=="") - { - region=null; - $('northBL').value='90'; - $('southBL').value='-90'; - $('eastBL').value='180'; - $('westBL').value='-180'; - $('northBL_remote').value='90'; - $('southBL_remote').value='-90'; - $('eastBL_remote').value='180'; - $('westBL_remote').value='-180'; - $('northBL_simple').value='90'; - $('southBL_simple').value='-90'; - $('eastBL_simple').value='180'; - $('westBL_simple').value='-180'; - - GeoNetwork.minimapSimpleSearch.updateExtentBox(); - GeoNetwork.minimapAdvancedSearch.updateExtentBox(); - GeoNetwork.minimapRemoteSearch.updateExtentBox(); - + if(region=="") { + resetMinimaps(); } else if (region=="userdefined") { // Do nothing. AoI is set by the user } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |