Changed the horizontal placement of the javascript code in the head section of the page.
svn: r18646
This commit is contained in:
parent
051da7cb87
commit
e4581a7db8
@ -3313,18 +3313,19 @@ class PlacePage(BasePage):
|
|||||||
|
|
||||||
# begin inline javascript code
|
# begin inline javascript code
|
||||||
# because jsc is a docstring, it does NOT have to be properly indented
|
# because jsc is a docstring, it does NOT have to be properly indented
|
||||||
with Html("script", type = "text/javascript") as jsc:
|
|
||||||
if self.mapservice == "Google":
|
if self.mapservice == "Google":
|
||||||
|
with Html("script", type = "text/javascript", indent = False) as jsc:
|
||||||
head += jsc
|
head += jsc
|
||||||
|
|
||||||
# Google adds Latitude/ Longitude to its maps...
|
# Google adds Latitude/ Longitude to its maps...
|
||||||
jsc += google_jsc % (latitude, longitude, placetitle)
|
jsc += google_jsc % (latitude, longitude, placetitle)
|
||||||
|
|
||||||
elif self.mapservice == "OpenStreetMap":
|
else:
|
||||||
canvas += jsc
|
|
||||||
|
|
||||||
# OpenStreetMap (OSM) adds Longitude/ Latitude to its maps,
|
# OpenStreetMap (OSM) adds Longitude/ Latitude to its maps,
|
||||||
# and needs a country code in lowercase letters...
|
# and needs a country code in lowercase letters...
|
||||||
|
with Html("script", type = "text/javascript") as jsc:
|
||||||
|
canvas += jsc
|
||||||
|
|
||||||
jsc += openstreetmap_jsc % (Utils.xml_lang()[3:5].lower(), longitude, latitude)
|
jsc += openstreetmap_jsc % (Utils.xml_lang()[3:5].lower(), longitude, latitude)
|
||||||
|
|
||||||
# add javascript function call to body element
|
# add javascript function call to body element
|
||||||
|
Loading…
Reference in New Issue
Block a user