From: Tom Hughes Date: Sun, 12 May 2013 12:06:24 +0000 (+0100) Subject: Make sure updatelinks() is called even if Potlatch fails to load X-Git-Tag: live~5922 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/340c28127ffee83a9a882b807cee8e5bdc3f3b6b?hp=5521f6ea9eaaee6c39570421b65cbc4e855fcca2 Make sure updatelinks() is called even if Potlatch fails to load --- diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 0c0a85972..54e02987b 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -62,6 +62,10 @@ swfobject.embedSWF("<%= asset_path("potlatch2.swf") %>", "potlatch", "100%", "100%", "10.1.102","<%= asset_path("expressInstall.swf") %>", flashvars, params, attributes); // 700,600 for fixed size, 100%,100% for resizable + + if (lat && lon) { + updatelinks(lon, lat, zoom); + } } <% if @lat && @lon -%>