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&v=2&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>