[fusion-commits] r2097 - trunk/widgets/BufferPanel
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Mar 11 00:38:20 EST 2010
Author: liuar
Date: 2010-03-11 00:38:18 -0500 (Thu, 11 Mar 2010)
New Revision: 2097
Modified:
trunk/widgets/BufferPanel/BufferPanel.templ
Log:
Fixed ticket Buffer: Cancel buffer without object selected invokes a script error.
Modified: trunk/widgets/BufferPanel/BufferPanel.templ
===================================================================
--- trunk/widgets/BufferPanel/BufferPanel.templ 2010-03-11 05:18:07 UTC (rev 2096)
+++ trunk/widgets/BufferPanel/BufferPanel.templ 2010-03-11 05:38:18 UTC (rev 2097)
@@ -57,6 +57,7 @@
var decimalSeparator = "__#DECIMALSEPARATOR#__";
var agent = navigator.userAgent.toLowerCase();
var msie = agent.indexOf("msie") != -1;
+var mapName;
function InitDocument()
{
@@ -70,7 +71,7 @@
{
var list = document.getElementById("layers");
var listNames = document.getElementById("layerNames");
- var mapName = document.getElementById('Frm').mapname.value;
+ mapName = document.getElementById('Frm').mapname.value;
list.options.length = 0;
var map = GetParent().Fusion.getMapByName(mapName);
var layers = map.aMaps[0].getSelectedLayers();
@@ -219,6 +220,9 @@
function OnCancel()
{
+ if(mapName == "undefined")
+ return;
+
var map = GetParent().Fusion.getMapByName(mapName);
map.clearSelection();
//mf.GotoHomePage();
More information about the fusion-commits
mailing list