[mapguide-commits] r4608 - in sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide: aqua limegold maroon slate turquoiseyellow

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Feb 23 00:34:10 EST 2010


Author: liuar
Date: 2010-02-23 00:34:10 -0500 (Tue, 23 Feb 2010)
New Revision: 4608

Modified:
   sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/aqua/index.html
   sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/limegold/index.html
   sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/maroon/index.html
   sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/slate/index.html
   sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html
Log:
Submit on behalf of madair.
Port the fix of ticket #1277('Tasks' window doesn't pop-up when user click on tool, that should appear in 'Tasks' pane) to this trunk.

Modified: sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/aqua/index.html
===================================================================
--- sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/aqua/index.html	2010-02-23 05:32:07 UTC (rev 4607)
+++ sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/aqua/index.html	2010-02-23 05:34:10 UTC (rev 4608)
@@ -172,8 +172,15 @@
 
     $('AppContainer').resize({forceResize: true});
     $('AppContainer').style.visibility = 'visible';
+    var mapWidget = Fusion.getMapById('Map');
+    mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, initPanelHandler);
 }
 
+var initPanelHandler = function() {
+    //register this with MAP_LOADED so that the initial layout will remain
+    Fusion.registerForEvent(Fusion.Event.TASK_PANE_LOADED, showTaskPane);
+}
+
 var showOverviewMap = function() {
     dOverviewMap.open();
 }

Modified: sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/limegold/index.html
===================================================================
--- sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/limegold/index.html	2010-02-23 05:32:07 UTC (rev 4607)
+++ sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/limegold/index.html	2010-02-23 05:34:10 UTC (rev 4608)
@@ -159,8 +159,15 @@
 var fusionInitialized = function() {
     $('AppContainer').resize({forceResize: true});
     //Fusion.getWidgetById('ToolbarSecondary').checkPosition();
+    var mapWidget = Fusion.getMapById('Map');
+    mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, initPanelHandler);
 }
 
+var initPanelHandler = function() {
+    //register this with MAP_LOADED so that the initial layout will remain
+    Fusion.registerForEvent(Fusion.Event.TASK_PANE_LOADED, showTaskPane);
+}
+
 var showOverviewMap = function() {
 }
 

Modified: sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/maroon/index.html
===================================================================
--- sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/maroon/index.html	2010-02-23 05:32:07 UTC (rev 4607)
+++ sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/maroon/index.html	2010-02-23 05:34:10 UTC (rev 4608)
@@ -181,8 +181,15 @@
 
 var fusionInitialized = function() {
     $('AppContainer').resize({forceResize: true});
+    var mapWidget = Fusion.getMapById('Map');
+    mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, initPanelHandler);
 }
 
+var initPanelHandler = function() {
+    //register this with MAP_LOADED so that the initial layout will remain
+    Fusion.registerForEvent(Fusion.Event.TASK_PANE_LOADED, showTaskPane);
+}
+
 var showOverviewMap = function() {
   panelman.maximizePanel(panel4);
 }

Modified: sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/slate/index.html
===================================================================
--- sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/slate/index.html	2010-02-23 05:32:07 UTC (rev 4607)
+++ sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/slate/index.html	2010-02-23 05:34:10 UTC (rev 4608)
@@ -82,10 +82,10 @@
     });
     dOverviewMap.content.id = 'OverviewMap';
     main.addEvent('sizeChange', function(){
-		if (dOverviewMap.domObj.getStyle('display') != 'none'){
-			dOverviewMap.show();
-		}
-	});
+      if (dOverviewMap.domObj.getStyle('display') != 'none'){
+        dOverviewMap.show();
+      }
+    });
     main.resize();
 
     Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, fusionInitialized);
@@ -162,8 +162,15 @@
 
 var fusionInitialized = function() {
     $('AppContainer').resize({forceResize: true});
+    var mapWidget = Fusion.getMapById('Map');
+    mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, initPanelHandler);
 }
 
+var initPanelHandler = function() {
+    //register this with MAP_LOADED so that the initial layout will remain
+    Fusion.registerForEvent(Fusion.Event.TASK_PANE_LOADED, showTaskPane);
+}
+
 var showOverviewMap = function() {
     dOverviewMap.open();
 }

Modified: sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html
===================================================================
--- sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html	2010-02-23 05:32:07 UTC (rev 4607)
+++ sandbox/adsk/2.2gp/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html	2010-02-23 05:34:10 UTC (rev 4608)
@@ -146,8 +146,15 @@
 
 var fusionInitialized = function() {
     $('AppContainer').resize({forceResize: true});
+    var mapWidget = Fusion.getMapById('Map');
+    mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, initPanelHandler);
 }
 
+var initPanelHandler = function() {
+    //register this with MAP_LOADED so that the initial layout will remain
+    Fusion.registerForEvent(Fusion.Event.TASK_PANE_LOADED, showTaskPane);
+}
+
 var showOverviewMap = function() {
 }
 



More information about the mapguide-commits mailing list