[Mapbender-commits] r7857 - branches/2.7/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 10 11:27:53 EDT 2011


Author: astrid_emde
Date: 2011-06-10 08:27:53 -0700 (Fri, 10 Jun 2011)
New Revision: 7857

Modified:
   branches/2.7/http/javascripts/mod_loadwmc.js
Log:
#814 fixed use LOGIN to generate the url for the OL link

Modified: branches/2.7/http/javascripts/mod_loadwmc.js
===================================================================
--- branches/2.7/http/javascripts/mod_loadwmc.js	2011-06-10 14:31:16 UTC (rev 7856)
+++ branches/2.7/http/javascripts/mod_loadwmc.js	2011-06-10 15:27:53 UTC (rev 7857)
@@ -237,8 +237,11 @@
 	//following is added to give a window with an interated link which can be included in external applications
 	this.showOpenLayersUrl = function (id) {
 		this.hideOpenLayersUrl();
-		var url = "/mapbender/php/mod_wmc2ol.php?wmc_id=" + id ;
-		var $wmcOpenLayersUrlPopup = $('<div><input size="35" type="text" value="' + Mapbender.baseUrl + url + '"/></div>');
+		var url = Mapbender.loginUrl;
+		url = url.replace("frames/login.php", "");
+		url = url.replace("http/frames/login.php", "");
+		url = url + "php/mod_wmc2ol.php?wmc_id=" + id ;
+		var $wmcOpenLayersUrlPopup = $('<div><input size="35" type="text" value="' + url + '"/></div>');
 		$wmcOpenLayersUrlPopup.dialog({
 			title: translatedI18nObject.labelOpenLayersUrl,
 			bgiframe: true,



More information about the Mapbender_commits mailing list