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

christoph at osgeo.org christoph at osgeo.org
Thu Sep 21 09:14:50 EDT 2006


Author: christoph
Date: 2006-09-21 13:14:50+0000
New Revision: 768

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

Log:
added element var saveInSession

"1" = onUnload the current workspace is stored as WMC in the session

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=768&p1=trunk/mapbender/http/javascripts/mod_savewmc.php&p2=trunk/mapbender/http/javascripts/mod_savewmc.php&r1=767&r2=768
==============================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.php	(original)
+++ trunk/mapbender/http/javascripts/mod_savewmc.php	2006-09-21 13:14:50+0000
@@ -36,13 +36,18 @@
 	echo "alert('savewmc: ID not unique!');";
 }
 
+$e_id_css = "savewmc";
+include("../include/dyn_js.php");
+
 echo "mod_savewmc_target = '".$e_target."';";
 ?>
 function setOnUnload() {
 	document.getElementsByTagName('body')[0].setAttribute("onUnload", "mod_savewmc('session');");
 }
 
-mb_registerInitFunctions('setOnUnload()');
+if (saveInSession == '1') {
+	mb_registerInitFunctions('setOnUnload()');
+}
 
 var mod_savewmc_img = new Image(); mod_savewmc_img.src = "<?php  echo $e_src;  ?>";
 //var mod_savewmc_img_over = new Image(); mod_savewmc_img_over.src = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";




More information about the Mapbender_commits mailing list