From: Grant Slater Date: Thu, 6 Oct 2011 00:53:13 +0000 (+0100) Subject: Add an inner div for the plugin as swfobject will replace it X-Git-Tag: live~6178 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1a8b39a5476dd5d2e2b84f1cca8603cf7259f3e2?ds=sidebyside Add an inner div for the plugin as swfobject will replace it --- diff --git a/app/views/site/_potlatch.html.erb b/app/views/site/_potlatch.html.erb index d38d9b345..c09fdf186 100644 --- a/app/views/site/_potlatch.html.erb +++ b/app/views/site/_potlatch.html.erb @@ -1,5 +1,5 @@
- <%= t 'site.edit.flash_player_required' %> +
<%= t 'site.edit.flash_player_required' %>
<%= javascript_include_tag 'swfobject.js' %> @@ -39,7 +39,7 @@ attributes.id = "potlatch"; attributes.bgcolor = "#FFFFFF"; - swfobject.embedSWF("<%= asset_path("/potlatch/potlatch.swf") %>", "map", "100%", "100%", "6","<%= asset_path("/expressInstall.swf") %>", flashvars, params, attributes); + swfobject.embedSWF("<%= asset_path("/potlatch/potlatch.swf") %>", "potlatch", "100%", "100%", "6","<%= asset_path("/expressInstall.swf") %>", flashvars, params, attributes); // 700,600 for fixed size, 100%,100% for resizable } diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index e50e1f7e4..0605ff52d 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -1,5 +1,5 @@
- <%= t 'site.edit.flash_player_required' %> +
<%= t 'site.edit.flash_player_required' %>
<%= javascript_include_tag 'swfobject.js' %> @@ -57,7 +57,7 @@ attributes.id = "potlatch"; attributes.bgcolor = "#FFFFFF"; - swfobject.embedSWF("<%= asset_path("/potlatch2/potlatch2.swf") %>", "map", "100%", "100%", "10.1.85","<%= asset_path("/expressInstall.swf") %>", flashvars, params, attributes); + swfobject.embedSWF("<%= asset_path("/potlatch2/potlatch2.swf") %>", "potlatch", "100%", "100%", "10.1.85","<%= asset_path("/expressInstall.swf") %>", flashvars, params, attributes); // 700,600 for fixed size, 100%,100% for resizable }