[fusion-commits] r2103 - sandbox/adsk/2.2gp/widgets/BufferPanel
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Mar 18 02:01:37 EDT 2010
Author: liuar
Date: 2010-03-18 02:01:36 -0400 (Thu, 18 Mar 2010)
New Revision: 2103
Modified:
sandbox/adsk/2.2gp/widgets/BufferPanel/BufferPanel.templ
Log:
Port the fix of ticket #369 to adsk branch.
Modified: sandbox/adsk/2.2gp/widgets/BufferPanel/BufferPanel.templ
===================================================================
--- sandbox/adsk/2.2gp/widgets/BufferPanel/BufferPanel.templ 2010-03-16 15:10:08 UTC (rev 2102)
+++ sandbox/adsk/2.2gp/widgets/BufferPanel/BufferPanel.templ 2010-03-18 06:01:36 UTC (rev 2103)
@@ -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