Make sure updatelinks() is called even if Potlatch fails to load
authorTom Hughes <tom@compton.nu>
Sun, 12 May 2013 12:06:24 +0000 (13:06 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 12 May 2013 12:06:24 +0000 (13:06 +0100)
app/views/site/_potlatch2.html.erb

index 0c0a859727160112fbd82edf46eb3497d66943c2..54e02987bf9bc7ac42ffc9e301e065e72cfd8ca2 100644 (file)
 
     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 -%>