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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 20 05:10:58 EST 2008


Author: nimix
Date: 2008-02-20 05:10:58 -0500 (Wed, 20 Feb 2008)
New Revision: 2113

Modified:
   trunk/mapbender/http/javascripts/popup.js
Log:
fix strange ie events lost bug

Modified: trunk/mapbender/http/javascripts/popup.js
===================================================================
--- trunk/mapbender/http/javascripts/popup.js	2008-02-20 10:04:57 UTC (rev 2112)
+++ trunk/mapbender/http/javascripts/popup.js	2008-02-20 10:10:58 UTC (rev 2113)
@@ -122,7 +122,7 @@
  * @param {Number} popy top posision of the popup
  * 
  */
-function mb_popup(title,html,width,height,posx,posy,opacity) {
+function mb_popup(title,html,width,height,posx,posy,fName,opacity) {
 	//get first free place
 	var create_pos=popup_count;
 	for(var i = 0; i < popup_count;i++)
@@ -138,7 +138,7 @@
 	this.height=height?height:250;
 	this.title=title;
 	this.opacity=opacity?opacity:1.0;
-	this.html=html.indexOf("url:")==0?('<iframe src="'+html.substr(4)+'"></iframe>'):('<div class="scrollDiv">'+html+'</div>');
+	this.html=html.indexOf("url:")==0?('<iframe name="'+fName+'" src="'+html.substr(4)+'"></iframe>'):('<div class="scrollDiv">'+html+'</div>');
 	this.id="popup"+String(create_pos);
 	popup_count++;
 }
@@ -190,12 +190,12 @@
 	div.style.zIndex=popup_top++;
 	div.style.opacity=String(this.opacity);
 	
+	//create window
+	document.body.appendChild(div);
+	
 	//create Window elements
 	div.innerHTML='<div class="jqmnTitle jqDrag"><h1>'+this.title+'</h1></div><div class="jqmnContent">'+this.html+'</div><img src="../img/close_icon.png" class="jqmClose" alt="close" /><div class="jqResize" />';
 	
-	//create window
-	document.body.appendChild(div);
-	
 	//Bind events on title click (move window)
 	$(div.firstChild).mousedown(function(){
 		//set to top



More information about the Mapbender_commits mailing list