[mapguide-commits] r4607 - in trunk/MgDev/Oem/fusionMG/templates/mapguide: aqua limegold maroon slate turquoiseyellow

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Feb 23 00:32:09 EST 2010


Author: liuar
Date: 2010-02-23 00:32:07 -0500 (Tue, 23 Feb 2010)
New Revision: 4607

Modified:
   trunk/MgDev/Oem/fusionMG/templates/mapguide/aqua/index.html
   trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html
   trunk/MgDev/Oem/fusionMG/templates/mapguide/maroon/index.html
   trunk/MgDev/Oem/fusionMG/templates/mapguide/slate/index.html
   trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html
Log:
Submit on behalf of madair.
Fixed ticket #1277 'Tasks' window doesn't pop-up when user click on tool, that should appear in 'Tasks' pane

Modified: trunk/MgDev/Oem/fusionMG/templates/mapguide/aqua/index.html
===================================================================
--- trunk/MgDev/Oem/fusionMG/templates/mapguide/aqua/index.html	2010-02-22 06:40:31 UTC (rev 4606)
+++ trunk/MgDev/Oem/fusionMG/templates/mapguide/aqua/index.html	2010-02-23 05:32:07 UTC (rev 4607)
@@ -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: trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html
===================================================================
--- trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html	2010-02-22 06:40:31 UTC (rev 4606)
+++ trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html	2010-02-23 05:32:07 UTC (rev 4607)
@@ -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: trunk/MgDev/Oem/fusionMG/templates/mapguide/maroon/index.html
===================================================================
--- trunk/MgDev/Oem/fusionMG/templates/mapguide/maroon/index.html	2010-02-22 06:40:31 UTC (rev 4606)
+++ trunk/MgDev/Oem/fusionMG/templates/mapguide/maroon/index.html	2010-02-23 05:32:07 UTC (rev 4607)
@@ -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: trunk/MgDev/Oem/fusionMG/templates/mapguide/slate/index.html
===================================================================
--- trunk/MgDev/Oem/fusionMG/templates/mapguide/slate/index.html	2010-02-22 06:40:31 UTC (rev 4606)
+++ trunk/MgDev/Oem/fusionMG/templates/mapguide/slate/index.html	2010-02-23 05:32:07 UTC (rev 4607)
@@ -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: trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html
===================================================================
--- trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html	2010-02-22 06:40:31 UTC (rev 4606)
+++ trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html	2010-02-23 05:32:07 UTC (rev 4607)
@@ -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