[fusion-commits] r2064 - trunk/widgets/Theme
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Feb 8 21:56:28 EST 2010
Author: liuar
Date: 2010-02-08 21:56:28 -0500 (Mon, 08 Feb 2010)
New Revision: 2064
Modified:
trunk/widgets/Theme/thememain.php
Log:
Fixed ticket #359 Theme on raster layer cause an error.
[Analysis]
For layers which don't contain the geometry property, the layer's name will not be record in layerNames in theme.php
So in thememain.php the layerSelect.value will be null, and the layerInfo request will fail.
[Resolution/Workaround]
To resolve this problem, I checked the layerSelect.value, if it's null, just return.
Modified: trunk/widgets/Theme/thememain.php
===================================================================
--- trunk/widgets/Theme/thememain.php 2010-02-09 02:33:10 UTC (rev 2063)
+++ trunk/widgets/Theme/thememain.php 2010-02-09 02:56:28 UTC (rev 2064)
@@ -124,6 +124,11 @@
function OnLayerChange()
{
var layerSelect = document.getElementById("layerSelect");
+
+ if(layerSelect.value == ""){
+ return;
+ }
+
var propertySelect = document.getElementById("propertySelect");
var scaleSelect = document.getElementById("scaleSelect");
More information about the fusion-commits
mailing list