[fusion-commits] r1766 - trunk/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Feb 3 14:24:59 EST 2009


Author: chrisclaydon
Date: 2009-02-03 14:24:59 -0500 (Tue, 03 Feb 2009)
New Revision: 1766

Modified:
   trunk/widgets/Search.js
Log:
Change sWinFeatures to sFeatures

Modified: trunk/widgets/Search.js
===================================================================
--- trunk/widgets/Search.js	2009-02-03 19:23:41 UTC (rev 1765)
+++ trunk/widgets/Search.js	2009-02-03 19:24:59 UTC (rev 1766)
@@ -29,7 +29,7 @@
  * A widget that displays a pre-configured search form to the user and then
  * runs the search.  Searches are done on the attributes of specifiedd layers.
  *
- * uses JavaScript Scale Bar for MapServer 
+ * uses JavaScript Scale Bar for MapServer
  * (http://mapserver.commenspace.org/tools/scalebar/
  * **********************************************************************/
 
@@ -52,7 +52,7 @@
     activate: function() {
         var url = this.sBaseUrl;
         //add in other parameters to the url here
-        
+
         var map = this.getMap();
         var mapLayers = map.getAllMaps();
         var taskPaneTarget = Fusion.getWidgetById(this.sTarget);
@@ -67,11 +67,11 @@
         } else {
           params.push('popup=true');
         }
-        params.push('title='+this.title);  
-        params.push('prompt='+this.prompt);  
-        params.push('target='+this.sTarget);  
-        params.push('filter='+this.filter);  
-        params.push('layer='+this.layer);  
+        params.push('title='+this.title);
+        params.push('prompt='+this.prompt);
+        params.push('target='+this.sTarget);
+        params.push('filter='+this.filter);
+        params.push('layer='+this.layer);
         params.push('limit='+this.limit);
         var names = [];
         var props = [];
@@ -79,8 +79,8 @@
           names.push(this.resultColumns[i].Name);
           props.push(this.resultColumns[i].Property);
         }
-        params.push('properties='+props.join(","));  
-        params.push('propNames='+names.join(","));  
+        params.push('properties='+props.join(","));
+        params.push('propNames='+names.join(","));
 
         if (url.indexOf('?') < 0) {
             url += '?';
@@ -94,7 +94,7 @@
             if ( pageElement ) {
                 pageElement.src = url;
             } else {
-                window.open(url, this.sTarget, this.sWinFeatures);
+                window.open(url, this.sTarget, this.sFeatures);
             }
         }
     }



More information about the fusion-commits mailing list