GeoView : bug #4002 console message: undefined @1: ReferenceError: Can't find variable: addcrosshair

svn: r15448
This commit is contained in:
Serge Noiraud 2010-05-22 07:41:04 +00:00
parent bedbf0084f
commit 80c94857ed

View File

@ -1033,7 +1033,8 @@ class GeoView(HtmlView):
elif year != "no":
self.last_selected_year = year
self._call_js_selectmarkers(year)
self.renderer.execute_script("javascript:addcrosshair('%d','%s')" %
if self.javascript_ready:
self.renderer.execute_script("javascript:addcrosshair('%d','%s')" %
(self._config.get("preferences.crosshair"),
self.crosspath))