[pLog-svn] r5765 - plog/trunk/templates/default

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Aug 1 09:41:04 EDT 2007


Author: oscar
Date: 2007-08-01 09:41:03 -0400 (Wed, 01 Aug 2007)
New Revision: 5765

Modified:
   plog/trunk/templates/default/location_map.template
Log:
I still don't understand why IE would refuse to display the previous version of this file, but the fact is that it it did. It works now, so we'll leave it as it is.


Modified: plog/trunk/templates/default/location_map.template
===================================================================
--- plog/trunk/templates/default/location_map.template	2007-07-31 20:06:04 UTC (rev 5764)
+++ plog/trunk/templates/default/location_map.template	2007-08-01 13:41:03 UTC (rev 5765)
@@ -1,12 +1,13 @@
-<div id="mapChooserBody" style="padding: 0px;margin: 0px;">
-  <div id="map" style="	width: 651px; height: 500px;margin:0;margin-bottom:5px;padding:0;"></div>
-<!-- Google Maps library -->
 <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={$google_maps_api_key}" type="text/javascript"></script>
-<script type="text/javascript" src="{$url->getBaseUrl()}/js/location/location.js"></script>
+<script type="text/javascript" src="js/location/location.js"></script>
+<div id="mapChooserBody">
+  <div id="map" style="width:651px;height:500px"></div>
+    <input type="hidden" name="lat" value="" id="lat" />
+    <input type="hidden" name="long" value="" id="long" />
 <script type="text/javascript">
-// create the global object	
+// create the global object
 l = new Lifetype.UI.Location();
-l.init( 3 );
-l.displayLocation({literal}{{/literal}latlong:'{$loc->getLatitude()},{$loc->getLongitude()}',desc:'{$loc->getDescription()}',id:'{$loc->getId()}'{literal}}{/literal});
+
+l.init('3');
+l.displayLocation({literal}{{/literal}latlong:'{$loc->getLatitude()},{$loc->getLongitude()}',desc:'{$loc->getDescription()|escape:"javascript"}',id:'{$loc->getId()}'{literal}}{/literal});
 </script>
-</div>
\ No newline at end of file



More information about the pLog-svn mailing list