svn commit: r812 - trunk/mapbender/http/javascripts/mod_savewmc.php

christoph at osgeo.org christoph at osgeo.org
Mon Nov 6 05:20:01 EST 2006


Author: christoph
Date: 2006-11-06 10:20:00+0000
New Revision: 812

Modified:
   trunk/mapbender/http/javascripts/mod_savewmc.php

Log:
added try/catch for element var saveInSession

Modified: trunk/mapbender/http/javascripts/mod_savewmc.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_savewmc.php?view=diff&rev=812&p1=trunk/mapbender/http/javascripts/mod_savewmc.php&p2=trunk/mapbender/http/javascripts/mod_savewmc.php&r1=811&r2=812
==============================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.php	(original)
+++ trunk/mapbender/http/javascripts/mod_savewmc.php	2006-11-06 10:20:00+0000
@@ -45,6 +45,14 @@
 	document.getElementsByTagName('body')[0].setAttribute("onUnload", "mod_savewmc('session');");
 }
 
+
+try {
+	if (saveInSession) {}
+}
+catch(e) {
+	saveInSession = 0;
+}
+
 if (saveInSession == '1') {
 	mb_registerInitFunctions('setOnUnload()');
 }




More information about the Mapbender_commits mailing list