Permalink
Browse files

Fix asset compilation for javascripts.

  • Loading branch information...
1 parent 77721d0 commit e542f96acee3f35c180a2841ac1c7a36b94c64b6 @robyurkowski robyurkowski committed Mar 13, 2012
View
1 app/assets/javascripts/refinery/portfolio.js
@@ -0,0 +1 @@
+//= require_tree './portfolio'
View
1 app/assets/javascripts/refinery/portfolio/frontend.js
@@ -1 +0,0 @@
-//= require skitter
View
7 app/assets/javascripts/refinery/portfolio/frontend.js.erb
@@ -0,0 +1,7 @@
+//= require 'skitter'
+//= require_self
+
+jQuery(document).ready(function($) {
+ $('.slideshow').skitter(<%= ::Refinery::Portfolio.skitter_options.to_json %>);
+});
+
View
11 app/views/refinery/portfolio/galleries/index.html.erb
@@ -4,14 +4,3 @@
<% end %>
<%= render :partial => "/refinery/content_page" %>
-<% content_for :stylesheets, stylesheet_link_tag('refinery/portfolio/frontend', 'skitter/skitter') %>
-<% content_for :javascripts, javascript_include_tag('jquery', 'skitter/jquery.animate-colors-min', 'skitter/jquery.easing.1.3', 'skitter/jquery.skitter.js') %>
-<% content_for :javascripts do %>
- <script type='text/javascript'>
- $(function() {
- $('.slideshow').skitter(<%= raw ::Refinery::Portfolio.skitter_options.to_json %>);
- });
- </script>
-<% end %>
-
-
View
3 vendor/assets/javascripts/skitter.js
@@ -0,0 +1,3 @@
+//= require './skitter/jquery.animate-colors-min.js'
+//= require './skitter/jquery.easing.1.3.js'
+//= require './skitter/jquery.skitter.js'
View
0 vendor/assets/javascripts/skitter/jquery.animate-colors-min.js 100755 → 100644
File mode changed.
View
0 vendor/assets/javascripts/skitter/jquery.easing.1.3.js 100755 → 100644
File mode changed.
View
0 vendor/assets/javascripts/skitter/jquery.skitter.js 100755 → 100644
File mode changed.
View
0 vendor/assets/stylesheets/skitter/skitter.css.scss 100755 → 100644
File mode changed.

0 comments on commit e542f96

Please sign in to comment.