diff options
author | Chris Schlaeger <chris@linux.com> | 2016-11-05 14:17:05 +0100 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2016-11-05 14:17:05 +0100 |
commit | 5de746a482df4fd4e3d9ce70c9bb281d14e99a2a (patch) | |
tree | 820d3c6c603d04ab6e268b13077c57f8479bc609 | |
parent | a74ba4ba972c07e4a0f5272508a13f8dcb003f70 (diff) | |
download | postrunner-5de746a482df4fd4e3d9ce70c9bb281d14e99a2a.zip |
Move pr_trackview_init_xy() call before init_viewframe_map().
This hopefully fixes some issues with the maps not showing up for some
users.
-rw-r--r-- | lib/postrunner/TrackView.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/postrunner/TrackView.rb b/lib/postrunner/TrackView.rb index 3500972..58f3644 100644 --- a/lib/postrunner/TrackView.rb +++ b/lib/postrunner/TrackView.rb @@ -33,6 +33,8 @@ module PostRunner def to_html(doc) return unless @has_geo_data + doc.body_init_script('pr_trackview_init_xy();') + doc.head { doc.unique(:trackview_style) { doc.style(style) @@ -51,7 +53,6 @@ module PostRunner doc.div({ 'id' => 'map', 'class' => 'trackmap' }) }.to_html(doc) - doc.body_init_script('pr_trackview_init_xy();') end private |