[Mapbender-commits] r5420 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jan 25 04:37:30 EST 2010
Author: christoph
Date: 2010-01-25 04:37:30 -0500 (Mon, 25 Jan 2010)
New Revision: 5420
Modified:
branches/2.6/http/javascripts/mod_savewmc.php
Log:
Modified: branches/2.6/http/javascripts/mod_savewmc.php
===================================================================
--- branches/2.6/http/javascripts/mod_savewmc.php 2010-01-25 09:37:00 UTC (rev 5419)
+++ branches/2.6/http/javascripts/mod_savewmc.php 2010-01-25 09:37:30 UTC (rev 5420)
@@ -36,10 +36,14 @@
try {if (saveInSession) {}}catch(e) {saveInSession = 0;}
if (saveInSession == 1) {
- eventAfterMapRequest.register(function () {
- mod_savewmc_session();
+ eventInit.register(function () {
+ var ind = getMapObjIndexByName(mod_savewmc_target);
+ var map = mb_mapObj[ind];
+ eventAfterMapRequest.register(function () {
+ mod_savewmc_session();
+ });
+ // mb_registerInitFunctions('setOnUnload()');
});
-// mb_registerInitFunctions('setOnUnload()');
}
<?php
@@ -73,10 +77,14 @@
if (storeInSession) {
$.ajaxSetup({async:false});
}
- $.post("../php/mod_savewmc_server.php", {
+ var params = {
"saveInSession":storeInSession,
"generalTitle":generalTitle,
"extensionData":extensionDataString,
"mapObject":$.toJSON(mb_mapObj)
- }, callbackFunction);
+ };
+// console.log("saveinsession");
+// console.log(mb_mapObj);
+// console.log(params);
+ $.post("../php/mod_savewmc_server.php", params, callbackFunction);
}
More information about the Mapbender_commits
mailing list