Permalink
Browse files

Merge pull request #75 from ianwallen/master

Small fix to showMapPanel variable check
  • Loading branch information...
2 parents 5762861 + 032504e commit a24bf1b7c0601e58cd629160df920715e7c80fd7 Jesse Eichar committed Feb 28, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 web/src/main/webapp/scripts/gn_search.js
  2. +1 −1 web/src/main/webapp/xsl/metadata-show.xsl
@@ -1178,12 +1178,12 @@ function toggleWhen() {
function addWMSLayer(layers) {
Ext.getCmp("north-map-panel").expand();
- mainViewport.doLayout();
GeoNetwork.mapViewer.addWMSLayer(layers);
}
function addWMSServerLayers(url) {
Ext.getCmp("north-map-panel").expand();
+ mainViewport.doLayout();
GeoNetwork.mapViewer.addWMSServerLayers(url);
}
@@ -122,7 +122,7 @@
<xsl:variable name="typeWMS"><xsl:copy-of select="/root/request/type"/></xsl:variable>
-<xsl:if test="$showMap!='false'">
+ <xsl:if test="normalize-space($showMap)!='false'">
<script type="text/javascript">
function init() {};

0 comments on commit a24bf1b

Please sign in to comment.