[mapguide-commits] r4671 - sandbox/rfc71/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Mar 17 04:21:59 EDT 2010


Author: jng
Date: 2010-03-17 04:21:58 -0400 (Wed, 17 Mar 2010)
New Revision: 4671

Modified:
   sandbox/rfc71/viewerfiles/ajaxmappane.templ
Log:
#1053: Add a custom onmousedown event handler that prevents propagation up to the top-level onmousedown handler. This makes the dropdown lists fully function in webkit-based browsers (Safari, Chrome). Other browsers are not affected in any way.

Modified: sandbox/rfc71/viewerfiles/ajaxmappane.templ
===================================================================
--- sandbox/rfc71/viewerfiles/ajaxmappane.templ	2010-03-16 04:07:20 UTC (rev 4670)
+++ sandbox/rfc71/viewerfiles/ajaxmappane.templ	2010-03-17 08:21:58 UTC (rev 4671)
@@ -3870,7 +3870,7 @@
             selLayers.add(opt);
         else
             selLayers.add(opt, null);
-            
+ 
         //Associates the selected features on layer
         selFeatures[layerName] = resp[layerName];
     }
@@ -3921,7 +3921,7 @@
         if (msie)
             sFeature.add(opt);
         else
-            sFeature.add(opt, null);
+            sFeature.add(opt, null);    
     }
     
     if (count > 0)
@@ -4006,6 +4006,15 @@
     return true;
 }
 
+function OnPropertyPaneDropDownClick(e)
+{
+    if(msie)
+        e.cancelBubble = true;
+    else
+        e.stopPropagation();
+    return true;
+}
+
 </script>
 
 </head>
@@ -4040,10 +4049,10 @@
              <table width=100 height=30 border=0 cellpadding=0 cellspacing=0>
                <tr height=30>
                  <td align=center valign=center>
-                   <select id="selLayers" onchange="OnSelectedFeatureLayerChanged()"></select>
+                   <select id="selLayers" onchange="OnSelectedFeatureLayerChanged()" onmousedown="return OnPropertyPaneDropDownClick(event)"></select>
                  </td>
                  <td align=center valign=center>
-                   <select id="selFeature" onchange="OnSelectedFeatureChanged()"></select>
+                   <select id="selFeature" onchange="OnSelectedFeatureChanged()" onmousedown="return OnPropertyPaneDropDownClick(event)"></select>
                  </td>
                  <td align=right>
                    <span class="btn" id="btnZoomSelectedFeature" style="position: absolute; right: 2px;" onmouseover="HoverButton('btnZoomSelectedFeature', '')" onmouseout="LeaveButton('btnZoomSelectedFeature', '')" onclick="ZoomSelectedFeature()">



More information about the mapguide-commits mailing list