From 340c28127ffee83a9a882b807cee8e5bdc3f3b6b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 12 May 2013 13:06:24 +0100 Subject: [PATCH] Make sure updatelinks() is called even if Potlatch fails to load --- app/views/site/_potlatch2.html.erb | 4 ++++ 1 file changed, 4 insertions(+) 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 -%> -- 2.43.2