[Mapbender-commits] r5535 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Feb 20 05:07:40 EST 2010
Author: marc
Date: 2010-02-20 05:07:40 -0500 (Sat, 20 Feb 2010)
New Revision: 5535
Modified:
branches/2.6/http/javascripts/mod_addWMSfromfilteredList_ajax.php
Log:
http://trac.osgeo.org/mapbender/ticket/555
Modified: branches/2.6/http/javascripts/mod_addWMSfromfilteredList_ajax.php
===================================================================
--- branches/2.6/http/javascripts/mod_addWMSfromfilteredList_ajax.php 2010-02-20 10:03:13 UTC (rev 5534)
+++ branches/2.6/http/javascripts/mod_addWMSfromfilteredList_ajax.php 2010-02-20 10:07:40 UTC (rev 5535)
@@ -282,15 +282,10 @@
function displayWMS (wmsArray, guiId) {
if (wmsArray.length > 0) {
setTableHeader(selectWmsText, wmsNameText, wmsAbstractText);
-
+
for (var i = 0; i < wmsArray.length; i++) {
-
- if (global_source == "db" && typeof(guiId) !== "undefined" ) {
- var onClick = "mod_addWMSfromDB('" + guiId + "', '" + wmsArray[i].id + "')";
- }
- else {
- var onClick = "mod_addWMSfromfilteredList('" + wmsArray[i].getCapabilitiesUrl + "', '" + wmsArray[i].version + "')";
- }
+ var onClick = "mod_addWMSfromDB('" + guiId + "', '" + wmsArray[i].id + "')";
+
addTableRow(wmsArray[i].title, wmsArray[i].abstract, onClick);
}
}
More information about the Mapbender_commits
mailing list