[fusion-commits] r2078 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Feb 19 11:47:17 EST 2010
Author: madair
Date: 2010-02-19 11:47:16 -0500 (Fri, 19 Feb 2010)
New Revision: 2078
Modified:
trunk/widgets/TaskPane.js
Log:
re #352: fire an event when the TaskPane is written to
Modified: trunk/widgets/TaskPane.js
===================================================================
--- trunk/widgets/TaskPane.js 2010-02-18 19:49:44 UTC (rev 2077)
+++ trunk/widgets/TaskPane.js 2010-02-19 16:47:16 UTC (rev 2078)
@@ -28,8 +28,9 @@
*
* A utility widget that holds output from other widgets.
****************************************************************************/
+
+Fusion.Event.TASK_PANE_LOADED = Fusion.Event.lastEventId++;
-
Fusion.Widget.TaskPane = OpenLayers.Class(Fusion.Widget, {
aExecutedTasks: null, //array of URLs for tasks execcuted in the TaskPane
nCurrentTask: -1,
@@ -125,6 +126,7 @@
//is added to the DOM
this.oTaskPane.domObj.resize();
+ Fusion.registerEventID(Fusion.Event.TASK_PANE_LOADED);
Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, OpenLayers.Function.bind(this.setTaskMenu, this));
this.getMap().registerForEvent(Fusion.Event.MAP_LOADED, OpenLayers.Function.bind(this.setInitialContent, this, initialTask));
},
@@ -160,6 +162,8 @@
},
setContent: function(url) {
+ Fusion.triggerEvent(Fusion.Event.TASK_PANE_LOADED);
+
if (this.nCurrentTask < this.aExecutedTasks.length-1) {
//this.aExecutedTasks.splice(this.nCurrentTask, this.aExecutedTasks.length - this.nCurrentTask);
}
More information about the fusion-commits
mailing list