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

commits at geoext.org commits at geoext.org
Mon Apr 6 20:02:30 CEST 2009


Author: sbenthall
Date: 2009-04-06 20:02:30 +0200 (Mon, 06 Apr 2009)
New Revision: 350

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
using 'form' layout for bookmark url window


Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-03 16:26:44 UTC (rev 349)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-06 18:02:30 UTC (rev 350)
@@ -397,16 +397,16 @@
             document.location.hostname +
             document.location.pathname + "?" + query;
 
-        var html = 
-            "<form>" +
-            "<p>You can come back to this map later using " +
-            "the following URL:</p>" +
-            "<input type='text' id='bookmark-url-input' class='bookmark-url' readonly='' value='" + url +"'>"
-            "</input></form>";
-
         var win = new Ext.Window({
             title: "Bookmark URL",
-            html: html
+            layout: 'form',
+            items: [{
+                xtype: 'textfield',
+                id: 'bookmark-window-textfield',
+                fieldLabel: 'Permalink',
+                readOnly: true,
+                value: url
+            }]
         });
 
         win.show();



More information about the Commits mailing list