[Mapbender-commits] r7858 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jun 10 11:30:26 EDT 2011
Author: astrid_emde
Date: 2011-06-10 08:30:26 -0700 (Fri, 10 Jun 2011)
New Revision: 7858
Modified:
trunk/mapbender/http/javascripts/mod_loadwmc.js
Log:
#814 fixed use LOGIN to generate the url for the OL link
Modified: trunk/mapbender/http/javascripts/mod_loadwmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_loadwmc.js 2011-06-10 15:27:53 UTC (rev 7857)
+++ trunk/mapbender/http/javascripts/mod_loadwmc.js 2011-06-10 15:30:26 UTC (rev 7858)
@@ -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