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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 28 03:27:51 PDT 2018


Author: armin11
Date: 2018-08-28 03:27:51 -0700 (Tue, 28 Aug 2018)
New Revision: 9952

Modified:
   trunk/mapbender/http/plugins/mb_sessionWmc.js
Log:
Enhancement of disclaimer module - thanx to karl owesny ;-)

Modified: trunk/mapbender/http/plugins/mb_sessionWmc.js
===================================================================
--- trunk/mapbender/http/plugins/mb_sessionWmc.js	2018-08-22 15:51:18 UTC (rev 9951)
+++ trunk/mapbender/http/plugins/mb_sessionWmc.js	2018-08-28 10:27:51 UTC (rev 9952)
@@ -27,10 +27,13 @@
  * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
  */
 
+options.specialCondition = options.specialCondition !== undefined ? options.specialCondition : "";
+var specialCondition = options.specialCondition ;
+
 var originalI18nObject = {
-	"confirmationQuestion": "Should this services be loaded regardless?",
-	"goFurtherOn": "Continue",
-	"confirmationTitle": "Confirmation"
+	"confirmationQuestion": "Soll dieser Dienst trotzdem geladen werden?",
+	"goFurtherOn": "Weiter",
+	"confirmationTitle": "Bestätigung"
 };
 
 var translatedI18nObject = Mapbender.cloneObject(originalI18nObject);
@@ -142,7 +145,7 @@
 			for (var index in caseObj.wms) {
 				var wms = caseObj.wms[index];
 				permissionHtml += "<label for='" + constraintType + "_" + wms.index + "'>" +
-				(constraintType === "noPermission" ? "<li>" : "<input id='" + options.id + "_" + constraintType + "_" + wms.index + "' " + "type='checkbox' checked='checked'/>") +
+				(constraintType === "noPermission" ? "<li>" : "<input id='" + options.id + "_" + constraintType + "_" + wms.index + "' " + "type='checkbox' checked='checked' />") +
 				wms.title  + "</label><br>";
 				wmsCount++;
 			}
@@ -164,7 +167,7 @@
 
 		$dialog = $("<div id='" + o.id + "_constraint_form' title='"+translatedI18nObject.confirmationTitle+"'>" +
 			"<style> fieldset label { display: block; }</style>" +
-			"<form>" + html + "</form></div>").dialog({
+			"<form>" + specialCondition + html + "</form></div>").dialog({
 				bgiframe: true,
 				autoOpen: false,
 				height: 400,



More information about the Mapbender_commits mailing list