[Mapbender-commits] r7687 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Mar 4 01:41:35 EST 2011


Author: armin11
Date: 2011-03-03 22:41:35 -0800 (Thu, 03 Mar 2011)
New Revision: 7687

Modified:
   trunk/mapbender/http/plugins/mb_sessionWmc.js
Log:
Bugfix: unset the old get api params before location.reload

Modified: trunk/mapbender/http/plugins/mb_sessionWmc.js
===================================================================
--- trunk/mapbender/http/plugins/mb_sessionWmc.js	2011-03-03 22:17:11 UTC (rev 7686)
+++ trunk/mapbender/http/plugins/mb_sessionWmc.js	2011-03-04 06:41:35 UTC (rev 7687)
@@ -111,9 +111,10 @@
 			},
 			callback: function (obj, result, message) {
 				window.resetSession = true;
-				//alert(message);
-				location.reload();
-				//mapbender reload!
+				//unset the get api params cause the will load the old state!
+				var currentURL = location;
+				var newHref = currentURL.protocol+'//'+currentURL.host+currentURL.pathname;
+				window.location.href = newHref;
 			}
 		});
 		req.send();



More information about the Mapbender_commits mailing list