[fusion-commits] r2292 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Sun Nov 28 21:30:26 EST 2010
Author: liuar
Date: 2010-11-28 18:30:26 -0800 (Sun, 28 Nov 2010)
New Revision: 2292
Modified:
trunk/widgets/QuickPlot.js
Log:
Ticket #418: Script Error happens when launching Quick Plot with LimeGold template
If we create a new FLW with LimeGold? template and add "Quick Plot" command, when we click the "Quick Plot" button, a script error will happen saying: panelman is undefined.
The reason is I used following line as test expression:
if (panelman)
Changing it to if (typeof (panelman) != "undefined") will solve the problem
Modified: trunk/widgets/QuickPlot.js
===================================================================
--- trunk/widgets/QuickPlot.js 2010-11-25 05:53:44 UTC (rev 2291)
+++ trunk/widgets/QuickPlot.js 2010-11-29 02:30:26 UTC (rev 2292)
@@ -93,7 +93,7 @@
}
// Expand taskpane automatically if it is the target window
- if (panelman)
+ if (typeof (panelman) != "undefined")
{
var panel = null;
for (var i = 0; i < panelman.panels.length; ++i)
More information about the fusion-commits
mailing list