Permalink
Browse files

added facebox all over

  • Loading branch information...
1 parent eebf3d5 commit 0469740a8b9405e8851449a167b646f8516fccc9 @maddox committed Mar 30, 2008
Showing with 5 additions and 9 deletions.
  1. +1 −7 app/views/layouts/application.html.erb
  2. +1 −0 app/views/layouts/site.html.erb
  3. +3 −2 public/javascripts/application.js
View
8 app/views/layouts/application.html.erb
@@ -11,15 +11,9 @@
<%= javascript_include_tag 'jquery-min' %>
<%= javascript_include_tag 'interface' %>
<%= javascript_include_tag 'facebox' %>
+ <%= javascript_include_tag 'application' %>
<%= yield :head %>
- <script type="text/javascript" charset="utf-8">
- jQuery(document).ready(function($) {
- $('a[rel*=facebox]').facebox()
- })
-
- </script>
-
</head>
<body>
View
1 app/views/layouts/site.html.erb
@@ -12,6 +12,7 @@
<%= stylesheet_link_tag 'facebox.css' %>
<%= javascript_include_tag 'jquery-min' %>
<%= javascript_include_tag 'facebox' %>
+ <%= javascript_include_tag 'application' %>
<%= @site.extra_head %>
View
5 public/javascripts/application.js
@@ -1,2 +1,3 @@
-// Place your application-specific JavaScript functions and classes here
-// This file is automatically included by javascript_include_tag :defaults
+jQuery(document).ready(function($) {
+ $('a[rel*=facebox]').facebox()
+})

0 comments on commit 0469740

Please sign in to comment.