[Commits] r323 - apps/opengeo/geoexplorer/trunk/lib

commits at geoext.org commits at geoext.org
Wed Apr 1 22:44:33 CEST 2009


Author: sbenthall
Date: 2009-04-01 22:44:33 +0200 (Wed, 01 Apr 2009)
New Revision: 323

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
doc for bookmark method


Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-01 20:08:47 UTC (rev 322)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-01 20:44:33 UTC (rev 323)
@@ -307,6 +307,14 @@
     },
 
 
+    /**
+     * Method: bookmark
+     * Creates a window that shows the user a URL that can be used to
+     * reload the map in its current configuration.
+     *
+     * Returns:
+     *{String} The URL displayed to the user.
+     */ 
     bookmark: function(){
 
         var config = this.extractConfiguration();
@@ -322,7 +330,7 @@
             "<form>" +
             "<p>You can come back to this map later using " +
             "the following URL:</p>" +
-            "<input type='text' readonly='' value='" + url +"'>"
+            "<input type='text' id='bookmark-url-input' class='bookmark-url' readonly='' value='" + url +"'>"
             "</input></form>";
 
         var win = new Ext.Window({



More information about the Commits mailing list