[Mapbender-commits] r7468 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 24 10:24:05 EST 2011


Author: kmq
Date: 2011-01-24 07:24:05 -0800 (Mon, 24 Jan 2011)
New Revision: 7468

Modified:
   trunk/mapbender/http/javascripts/mod_savewmc.js
Log:
save wmc not after each maprequest, but on page unload

Modified: trunk/mapbender/http/javascripts/mod_savewmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.js	2011-01-24 11:32:35 UTC (rev 7467)
+++ trunk/mapbender/http/javascripts/mod_savewmc.js	2011-01-24 15:24:05 UTC (rev 7468)
@@ -315,7 +315,8 @@
 	Mapbender.events.afterInit.register(function(){
 		if (saveInSession === 1) {
 			options.$target.each(function () {
-				$(this).mapbender().events.afterMapRequest.register(function () {
+	//			$(this).mapbender().events.afterMapRequest.register(function () {
+				$(window).bind("unload",function(){
 					that.save({
 						session : true
 					});



More information about the Mapbender_commits mailing list