From: <dco...@us...> - 2009-04-28 13:51:32
|
Revision: 3327 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=3327&view=rev Author: dcorpataux Date: 2009-04-28 13:50:59 +0000 (Tue, 28 Apr 2009) Log Message: ----------- Panpan cucu Modified Paths: -------------- sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/searchTools.js Modified: sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/searchTools.js =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/searchTools.js 2009-04-28 13:41:11 UTC (rev 3326) +++ sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/searchTools.js 2009-04-28 13:50:59 UTC (rev 3327) @@ -290,7 +290,7 @@ transformXML: function(csw, xsl, targetEl) { var cswXsl = searchTools.loadXMLString(xsl); if (window.ActiveXObject) { - //code for IE + //code for IE targetEl.innerHTML = csw.transformNode(cswXsl); } else if (document.implementation && document.implementation.createDocument) { // code for Mozilla, Firefox, Opera, etc. @@ -468,7 +468,7 @@ var viewers; - // some pages have prototype and other have access to ext so do a check + // some pages have prototype and other have access to ext so do a check // and choose the one that is available if (Ext) { viewers = Ext.DomQuery.select('.extentViewer'); @@ -480,22 +480,22 @@ for (var idx=0; idx<viewers.length; ++idx) { var viewer = viewers[idx]; - var children + var children if( Ext ) children = viewer.childNodes else children = viewer.childElements(); - + var tmp = []; - + for( var i=0; i < children.length; i++){ if(children[i].localName !=null ){ tmp.push(children[i]); } } - + children = tmp - + if( children.length > 1 ) continue; - + // Creates map component var id if( Ext ) { @@ -503,7 +503,7 @@ }else{ id = viewer.identify(); } - + var mapCmp = new MapComponent(id, {displayLayertree: false}); var drawCmp = new MapDrawComponent(mapCmp.map, { toolbar: mapCmp.toolbar, @@ -511,14 +511,14 @@ controlOptions: { title: 'Draw shape', }, - activate: false, + activate: false }); var options = {}; options.format='WKT'; options.zoomToFeatures=true; options.from=searchTools.latlong; options.to=searchTools.ch03; - + if( Ext ) { id=Ext.id(children[0]); }else{ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |