[richfaces-svn-commits] JBoss Rich Faces SVN: r596 - trunk/richfaces/gmap/src/main/templates.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Apr 30 19:40:13 EDT 2007


Author: SergeySmirnov
Date: 2007-04-30 19:40:12 -0400 (Mon, 30 Apr 2007)
New Revision: 596

Modified:
   trunk/richfaces/gmap/src/main/templates/gmap.jspx
Log:
avoiding problem with onload order in IE anf FF

Modified: trunk/richfaces/gmap/src/main/templates/gmap.jspx
===================================================================
--- trunk/richfaces/gmap/src/main/templates/gmap.jspx	2007-04-30 21:47:26 UTC (rev 595)
+++ trunk/richfaces/gmap/src/main/templates/gmap.jspx	2007-04-30 23:40:12 UTC (rev 596)
@@ -35,13 +35,10 @@
 <script type="text/javascript"  src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=#{key}" />
 <script type="text/javascript"> 
  //<![CDATA[
-function initGMap_#{map}() {
-__initGmapdiv("#{map}","#{clientId}", "#{warningMessage}");
-}
-function applyGmapparam_#{map}() {
-__applyGmapparam("#{map}",#{lat}, #{lng},#{zoom},#{mapType},#{enableDragging},#{enableInfoWindow},#{enableDoubleClickZoom},#{enableContinuousZoom},#{isGMapType},#{isGScale},#{isGLarge});
-}__addLoadEvent(initGMap_#{map});__addLoadEvent(applyGmapparam_#{map});
-var func = new Function('event', '#{oninit}'); __addLoadEvent(func);
+
+function __initGMap() { __initGmapdiv("#{map}","#{clientId}", "#{warningMessage}");
+ __applyGmapparam("#{map}",#{lat}, #{lng},#{zoom},#{mapType},#{enableDragging},#{enableInfoWindow},#{enableDoubleClickZoom},#{enableContinuousZoom},#{isGMapType},#{isGScale},#{isGLarge});
+ var userfunc = new Function('event', '#{oninit}'); userfunc();};__addLoadEvent(__initGMap);
 //]]>
 </script>
 </div>




More information about the richfaces-svn-commits mailing list