]> git.openstreetmap.org Git - rails.git/commitdiff
Serve swfobject via the assets pipeline
authorTom Hughes <tom@compton.nu>
Fri, 7 Oct 2011 18:31:30 +0000 (19:31 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:56 +0000 (09:42 +0000)
app/assets/swfobject/expressInstall.swf [moved from public/expressInstall.swf with 100% similarity, mode: 0644]
app/assets/swfobject/swfobject.js [moved from app/assets/javascripts/swfobject.js with 100% similarity]
app/views/site/_potlatch.html.erb
app/views/site/_potlatch2.html.erb

old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from public/expressInstall.swf
rename to app/assets/swfobject/expressInstall.swf
index c09fdf186a9f38cd0df8ff0ada6e1aaa4eaaa3ac..da348d417525da2c04965525fe2a9d6e91f8b4b1 100644 (file)
@@ -39,7 +39,7 @@
     attributes.id = "potlatch";
     attributes.bgcolor = "#FFFFFF";
 
     attributes.id = "potlatch";
     attributes.bgcolor = "#FFFFFF";
 
-    swfobject.embedSWF("<%= asset_path("/potlatch/potlatch.swf") %>", "potlatch", "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
   }
 
     // 700,600 for fixed size, 100%,100% for resizable
   }
 
index 0605ff52d397d67d59b1b446797b81f05df789ee..ceb92558c590ddacf8274674a646a4d585f05025 100644 (file)
@@ -57,7 +57,7 @@
     attributes.id = "potlatch";
     attributes.bgcolor = "#FFFFFF";
 
     attributes.id = "potlatch";
     attributes.bgcolor = "#FFFFFF";
 
-    swfobject.embedSWF("<%= asset_path("/potlatch2/potlatch2.swf") %>", "potlatch", "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
   }
 
     // 700,600 for fixed size, 100%,100% for resizable
   }