openstreet_jsc not initialized on body according to htmlconst
svn: r18011
This commit is contained in:
parent
fd47b5f5f5
commit
2176d10611
@ -2606,13 +2606,15 @@ 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:
|
with Html("script", type = "text/javascript") as jsc:
|
||||||
head += jsc
|
|
||||||
|
|
||||||
if self.mapservice == "Google":
|
if self.mapservice == "Google":
|
||||||
|
head += jsc
|
||||||
jsc += google_jsc % (latitude, longitude)
|
jsc += google_jsc % (latitude, longitude)
|
||||||
else:
|
else:
|
||||||
|
# do not need to write on head, load into canvas
|
||||||
jsc += openstreet_jsc % (Utils.xml_lang()[3:5].lower(),
|
jsc += openstreet_jsc % (Utils.xml_lang()[3:5].lower(),
|
||||||
longitude, latitude)
|
longitude, latitude)
|
||||||
|
canvas += jsc
|
||||||
# there is no need to add an ending "</script>",
|
# there is no need to add an ending "</script>",
|
||||||
# as it will be added automatically!
|
# as it will be added automatically!
|
||||||
|
|
||||||
@ -2620,7 +2622,8 @@ class PlacePage(BasePage):
|
|||||||
canvas += fullclear
|
canvas += fullclear
|
||||||
|
|
||||||
# add javascript function call to body element
|
# add javascript function call to body element
|
||||||
body.attr ='onload ="initialize();" '
|
if self.mapservice == "Google":
|
||||||
|
body.attr ='onload ="initialize();" '
|
||||||
|
|
||||||
# source references
|
# source references
|
||||||
srcrefs = self.display_ind_sources(place)
|
srcrefs = self.display_ind_sources(place)
|
||||||
|
Loading…
Reference in New Issue
Block a user