[fusion-commits] r1366 - in sandbox/olcore: lib widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Apr 8 14:05:14 EDT 2008
Author: madair
Date: 2008-04-08 14:05:14 -0400 (Tue, 08 Apr 2008)
New Revision: 1366
Modified:
sandbox/olcore/lib/fusion.js
sandbox/olcore/widgets/ClearSelection.js
sandbox/olcore/widgets/MapMenu.js
Log:
retrieve static xml via GET
fix class name errors
Modified: sandbox/olcore/lib/fusion.js
===================================================================
--- sandbox/olcore/lib/fusion.js 2008-04-08 17:37:11 UTC (rev 1365)
+++ sandbox/olcore/lib/fusion.js 2008-04-08 18:05:14 UTC (rev 1366)
@@ -673,9 +673,11 @@
* callback method to be executed on success and will be passed a parsed json object
*/
getXmlAsJson: function(url, callback) {
- var options = {};
- options.onSuccess = OpenLayers.Function.bind(this.xml2json, this, callback);
- options.onFailure = OpenLayers.Function.bind(this.ajaxException, this);
+ var options = {
+ method: 'get',
+ onSuccess: OpenLayers.Function.bind(this.xml2json, this, callback),
+ onFailure: OpenLayers.Function.bind(this.ajaxException, this)
+ };
new OpenLayers.Ajax.Request(url, options);
},
@@ -694,6 +696,7 @@
var options = {
onSuccess: callback,
+ method: 'post',
//parameters = 'xml='+encodeURIComponent(r.responseText.replace(/\\/g, '\\\\\\\\'));
parameters: {'xml': encodeURIComponent(r.responseText)}
};
Modified: sandbox/olcore/widgets/ClearSelection.js
===================================================================
--- sandbox/olcore/widgets/ClearSelection.js 2008-04-08 17:37:11 UTC (rev 1365)
+++ sandbox/olcore/widgets/ClearSelection.js 2008-04-08 18:05:14 UTC (rev 1366)
@@ -31,7 +31,7 @@
//Fusion.Widget.ClearSelection = Class.create();
//Fusion.Widget.ClearSelection.prototype = {
-Fusion.Widget.Help = OpenLayers.Class(Fusion.Widget, Fusion.Tool.ButtonBase, {
+Fusion.Widget.ClearSelection = OpenLayers.Class(Fusion.Widget, Fusion.Tool.ButtonBase, {
initialize : function(widgetTag) {
//console.log('ClearSelection.initialize');
Modified: sandbox/olcore/widgets/MapMenu.js
===================================================================
--- sandbox/olcore/widgets/MapMenu.js 2008-04-08 17:37:11 UTC (rev 1365)
+++ sandbox/olcore/widgets/MapMenu.js 2008-04-08 18:05:14 UTC (rev 1366)
@@ -33,7 +33,7 @@
//Fusion.Widget.MapMenu = Class.create();
//Fusion.Widget.MapMenu.prototype =
-Fusion.Widget.LinkToView = OpenLayers.Class(Fusion.Widget, Fusion.Tool.MenuBase,
+Fusion.Widget.MapMenu = OpenLayers.Class(Fusion.Widget, Fusion.Tool.MenuBase,
{
domObj: null,
oMenu: null,
More information about the fusion-commits
mailing list