[Mapbender-commits] r6833 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 30 04:48:11 EDT 2010


Author: verenadiewald
Date: 2010-08-30 08:48:11 +0000 (Mon, 30 Aug 2010)
New Revision: 6833

Modified:
   trunk/mapbender/http/php/mod_gazetteerMetadata.php
Log:
close former keyword or metadata dialog before opening new one

Modified: trunk/mapbender/http/php/mod_gazetteerMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_gazetteerMetadata.php	2010-08-30 08:34:57 UTC (rev 6832)
+++ trunk/mapbender/http/php/mod_gazetteerMetadata.php	2010-08-30 08:48:11 UTC (rev 6833)
@@ -222,7 +222,10 @@
 
 
 function openKeywordPopup () {
-	var $keywordPopup = parent.$('<div><iframe style="width:99%;height:99%;" src="../php/mod_SelectKeyword.php"></iframe></div>');
+	if(parent.$('.keywordIframe').size() > 0) {
+		parent.$('.keywordIframe').dialog('destroy');
+	}
+	var $keywordPopup = parent.$('<div class="keywordIframe"><iframe style="width:99%;height:99%;" src="../php/mod_SelectKeyword.php"></iframe></div>');
 	$keywordPopup.dialog({
 		title: "<?php echo _mb("Select a keyword"); ?>",
 		bgiframe: true,
@@ -235,7 +238,10 @@
 }
 
 function openMetadataPopup (layerId) {
-	var $metadataPopup = parent.$('<div><iframe style="width:100%;height:98%;" src="../php/mod_layerMetadata.php?id=' + layerId + '"></iframe></div>');
+	if(parent.$('.metadataIframe').size() > 0) {
+		parent.$('.metadataIframe').dialog('destroy');
+	}
+	var $metadataPopup = parent.$('<div class="metadataIframe"><iframe style="width:100%;height:98%;" src="../php/mod_layerMetadata.php?id=' + layerId + '"></iframe></div>');
 	$metadataPopup.dialog({
 		title : "<?php echo _mb("Metadata"); ?>",
 		bgiframe: true,



More information about the Mapbender_commits mailing list