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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Feb 13 15:42:20 EST 2011


Author: marc
Date: 2011-02-13 12:42:20 -0800 (Sun, 13 Feb 2011)
New Revision: 7582

Modified:
   trunk/mapbender/http/javascripts/mod_addWMSfromTree.js
Log:
replaced deprecated dialogManager 

Modified: trunk/mapbender/http/javascripts/mod_addWMSfromTree.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_addWMSfromTree.js	2011-02-13 19:25:19 UTC (rev 7581)
+++ trunk/mapbender/http/javascripts/mod_addWMSfromTree.js	2011-02-13 20:42:20 UTC (rev 7582)
@@ -50,7 +50,7 @@
  */
 
 (function () {
-
+	
 	var addwms_showWMS = typeof options.addwms_showWMS !== "undefined" ? 
 		options.addwms_showWMS : 0;
 	var applicationName = options.applicationName;
@@ -79,16 +79,24 @@
 							
 							if (addwms_showWMS > 0) {
 								try {
+									
+									
 									var msg = "Der hinzugeladene Kartendienst " + 
 										"verfügt über mehr als " + addwms_showWMS + 
 										" Ebenen. Die Ebenen des Dienstes werden " + 
 										"<b>nicht</b> aktiviert.";
-										
-									Mapbender.modules.dialogManager.openDialog({
-										content: msg,
+									
+									var $msg= $("<div>" + msg + "</div>");
+									$msg.dialog({
+										bgiframe: true,
+										autoOpen: true,
 										modal: false,
-										effectShow: 'puff'
-									});
+										width: 300,
+										height: 200,
+										pos: [100,50]
+									});	
+																						
+									
 								}
 								catch (e) {
 									new Mb_warning(e.message + ". " + msg);
@@ -150,10 +158,9 @@
 				}
 			}
 			try {
-				Mapbender.modules.dialogManager.openDialog({
-					content: msg,
+				var $msg= $("<div>" + msg + "</div>");
+				$msg.dialog({
 					modal: false,
-					effectShow: 'puff'
 				});
 			}
 			catch (e) {
@@ -173,16 +180,14 @@
 				},
 				behaviour: {
 					click: function (opt) {
-						var metadataPopup = new mb_popup({
+					var $metadataPopup = $("<div><iframe frameborder=0 style='width:100%;height:100%;' src='../php/mod_layerMetadata.php?wmsid=" + opt.treeNode.wmsId + "'></iframe></div>");
+					$metadataPopup.dialog({
 							title : "Metadata",
-							url : "../php/mod_layerMetadata.php?wmsid=" + 
-								opt.treeNode.wmsId,
 							width : 450, 
-							height : 600,
-							left : 400, 
+							height :600,
+							left : 250, 
 							top : 100
 						});
-						metadataPopup.show();
 					}
 				}
 			},
@@ -223,7 +228,8 @@
 									var wmsId = parseInt(opt.wmsId, 10);
 									var map = getMapObjByName(options.target[0]);
 									handleSelectedWms(map.elementName, wmsId, "visible", 0);
-									handleSelectedWms(map.elementName, wmsId, "querylayer", 0);
+									handleSelectedWms(map.e					effectShow: 'puff'
+lementName, wmsId, "querylayer", 0);
 								}
 								loadWmsCallback(opt);
 							}



More information about the Mapbender_commits mailing list