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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Nov 15 09:55:29 EST 2010


Author: christoph
Date: 2010-11-15 06:55:29 -0800 (Mon, 15 Nov 2010)
New Revision: 7128

Modified:
   trunk/mapbender/http/plugins/mb_sessionWmc.js
Log:
display terms of use is now configurable by element var "displayTermsOfUse" = 0/1

Modified: trunk/mapbender/http/plugins/mb_sessionWmc.js
===================================================================
--- trunk/mapbender/http/plugins/mb_sessionWmc.js	2010-11-15 14:45:42 UTC (rev 7127)
+++ trunk/mapbender/http/plugins/mb_sessionWmc.js	2010-11-15 14:55:29 UTC (rev 7128)
@@ -91,7 +91,7 @@
 		for (var constraintType in obj) {
 			var caseObj = obj[constraintType];
 			//check if terms of use has been set - then there are tou given in the message!
-			if (constraintType === "wmcTou" && caseObj.message != "") {
+			if (o.displayTermsOfUse && constraintType === "wmcTou" && caseObj.message != "") {
 				html += "<fieldset>"+caseObj.message+"</fieldset>";
 				dialogHasContent = true;
 				continue;
@@ -145,7 +145,6 @@
 		$dialog.dialog('open');
 	};
 
-
 	var checkConstraints = function () {
 		var req = new Mapbender.Ajax.Request({
 			url: "../php/mod_sessionWmc_server.php",



More information about the Mapbender_commits mailing list