[Commits] r871 - apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full
commits at geoext.org
commits at geoext.org
Wed May 27 22:00:40 CEST 2009
Author: dwins
Date: 2009-05-27 22:00:40 +0200 (Wed, 27 May 2009)
New Revision: 871
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js
Log:
Actually include the URL in the iframe from the export wizard.
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js 2009-05-27 19:23:15 UTC (rev 870)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js 2009-05-27 20:00:40 UTC (rev 871)
@@ -56,16 +56,24 @@
var snippetArea = new Ext.form.TextArea({
editable: false,
- height: 'auto'
+ height: '100'
});
var heightField = new Ext.form.NumberField({width: 50, value: 400});
var widthField = new Ext.form.NumberField({width: 50, value: 600});
var updateSnippet = function() {
+ var query = Ext.urlEncode({q: Ext.util.JSON.encode(config)});
+
+ // TODO: configurablize!!!1!!!!!111!!!!!!
+ var pathname = document.location.pathname.replace(/\/[^/]*$/, '/embed.html');
+ var url =
+ document.location.protocol + "//" +
+ document.location.hostname +
+ pathname + "?" + query;
+
snippetArea.setValue('<iframe height="' + heightField.getValue() +
- ' " width="' + widthField.getValue() + '" src="' +
- Ext.urlEncode(config) +
+ ' " width="' + widthField.getValue() + '" src="' + url +
'"> </iframe>');
};
More information about the Commits
mailing list