[mapguide-commits] r4366 - in trunk/MgDev/Oem/fusionMG/templates/mapguide: limegold turquoiseyellow

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Dec 2 21:22:07 EST 2009


Author: leaf
Date: 2009-12-02 21:22:06 -0500 (Wed, 02 Dec 2009)
New Revision: 4366

Modified:
   trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html
   trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html
Log:
Submit changes on behalf of Arthur Liu.

Fixed ticket 1166 View: Nothing shown in each panel 
by View with TurquoiseYellow as template
[https://trac.osgeo.org/mapguide/ticket/1166]

[Analysis]: 
The method setActiveTab() of Jx.TabSet will be invoked while user selects Show 
Legend Panel in View widget. However, it seems that this method was not designed 
for selection changing in View widget but button clicking on the TabBox, which 
will not active the selected tab but deactive the pre-selected one.Because 
Button click in the TabBox will invoke setActive(true) method in tab items 
before it calls setActiveTab()

[Resolution]:
We can simply update method tabBox.tabSet.setActiveTab(tab) to tab.setActive
(true) in MapGuide templates when the items in View widget selected.


Modified: trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html
===================================================================
--- trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html	2009-12-02 21:58:23 UTC (rev 4365)
+++ trunk/MgDev/Oem/fusionMG/templates/mapguide/limegold/index.html	2009-12-03 02:22:06 UTC (rev 4366)
@@ -163,15 +163,15 @@
 }
 
 var showTaskPane = function() {
-  tabbox1.tabSet.setActiveTab(tab1);
+  tab1.setActive(true);
 }
 
 var showLegend = function() {
-  tabbox1.tabSet.setActiveTab(tab2);
+  tab2.setActive(true);
 }
 
 var showSelectionPanel = function() {
-  tabbox1.tabSet.setActiveTab(tab3);
+  tab3.setActive(true);
 }
 
 </script>

Modified: trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html
===================================================================
--- trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html	2009-12-02 21:58:23 UTC (rev 4365)
+++ trunk/MgDev/Oem/fusionMG/templates/mapguide/turquoiseyellow/index.html	2009-12-03 02:22:06 UTC (rev 4366)
@@ -150,15 +150,15 @@
 }
 
 var showTaskPane = function() {
-  tabbox1.tabSet.setActiveTab(tab1);
+  tab1.setActive(true);
 }
 
 var showLegend = function() {
-  tabbox1.tabSet.setActiveTab(tab2);
+  tab2.setActive(true);
 }
 
 var showSelectionPanel = function() {
-  tabbox1.tabSet.setActiveTab(tab3);
+  tab3.setActive(true);
 }
 
 </script>



More information about the mapguide-commits mailing list