Permalink
Browse files

Added 'javascript_includes' hook.

  • Loading branch information...
1 parent 914083d commit 4c2392b99e92d1d1f87ae639cddf95c0f4b1004a @ndbroadbent ndbroadbent committed with michaeldv Aug 18, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/views/layouts/application.html.haml
@@ -12,6 +12,8 @@
= javascript_include_tag :defaults, "modalbox.js", :cache => "cache/all"
- unless tabless_layout?
= javascript_include_tag "crm_classes.js", "calendar_date_select/calendar_date_select.js", "calendar_date_select/format_#{t(:calendar_date_select_format, :default => 'american')}.js", :cache => "cache/classes"
+ = hook(:javascript_includes, self)
+
%script{:type => "text/javascript"}= yield :javascript
%body
@@ -29,3 +31,4 @@
= get_browser_timezone_offset
= yield :javascript_epilogue
= hook(:javascript_epilogue, self)
+

0 comments on commit 4c2392b

Please sign in to comment.