[Mapbender-commits] r2076 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Feb 8 09:25:07 EST 2008


Author: verenadiewald
Date: 2008-02-08 09:25:07 -0500 (Fri, 08 Feb 2008)
New Revision: 2076

Modified:
   branches/2.5/http/javascripts/popup.js
Log:
added iframe name to constructor

Modified: branches/2.5/http/javascripts/popup.js
===================================================================
--- branches/2.5/http/javascripts/popup.js	2008-02-08 14:14:38 UTC (rev 2075)
+++ branches/2.5/http/javascripts/popup.js	2008-02-08 14:25:07 UTC (rev 2076)
@@ -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++;
 }



More information about the Mapbender_commits mailing list