[fusion-commits] r2711 - trunk/widgets/QuickPlot
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue May 21 21:48:15 PDT 2013
Author: jng
Date: 2013-05-21 21:48:14 -0700 (Tue, 21 May 2013)
New Revision: 2711
Modified:
trunk/widgets/QuickPlot/QuickPlotPanel.js
trunk/widgets/QuickPlot/QuickPlotPanel.templ
Log:
Auto-deactivate the MapCapturer when QuickPlotPanel is unloaded
Modified: trunk/widgets/QuickPlot/QuickPlotPanel.js
===================================================================
--- trunk/widgets/QuickPlot/QuickPlotPanel.js 2013-05-22 04:30:09 UTC (rev 2710)
+++ trunk/widgets/QuickPlot/QuickPlotPanel.js 2013-05-22 04:48:14 UTC (rev 2711)
@@ -2,6 +2,12 @@
* Copyright (C) 2010 Autodesk, Inc. All rights reserved.
*/
+function panelUnloaded()
+{
+ var mapCapturer = getParent().Fusion.getWidgetsByType("QuickPlot")[0].mapCapturer;
+ mapCapturer.disable();
+}
+
function panelLoaded()
{
var widget = getParent().Fusion.getWidgetsByType("QuickPlot")[0];
Modified: trunk/widgets/QuickPlot/QuickPlotPanel.templ
===================================================================
--- trunk/widgets/QuickPlot/QuickPlotPanel.templ 2013-05-22 04:30:09 UTC (rev 2710)
+++ trunk/widgets/QuickPlot/QuickPlotPanel.templ 2013-05-22 04:48:14 UTC (rev 2711)
@@ -75,7 +75,7 @@
<script language="javascript" type="text/javascript" src="%sQuickPlotPanel.js"></script>
</head>
-<body onload="panelLoaded()">
+<body onload="panelLoaded()" onunload="panelUnloaded()">
<form id="Form1" name="Form1" method="post" action="PlotAsPDF.php">
<div class="Title FixWidth">__#QUICKPLOT_HEADER#__</div>
<div class="Label ">__#QUICKPLOT_TITLE#__</div>
More information about the fusion-commits
mailing list