Browse files

Only inline languages files if they're available.

  • Loading branch information...
1 parent 45a2689 commit 6e716524350a15f71abf75bd2e958e6e19b38ac3 @goncalossilva goncalossilva committed Mar 5, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 views/onepage.erb
View
7 views/onepage.erb
@@ -15,7 +15,12 @@
<%= inline_css(css_files) %>
<% if !@no_js %>
- <%= inline_js(['jquery-1.4.2.min.js', 'jquery-print.js', 'showoff.js', 'onepage.js', 'sh_main.min.js', 'core.js', 'showoffcore.js'] + @languages, 'public/js') %>
+ <%= inline_js(['jquery-1.4.2.min.js', 'jquery-print.js', 'showoff.js', 'onepage.js', 'sh_main.min.js', 'core.js', 'showoffcore.js'], 'public/js') %>
+
+ <% if @languages %>
+ <%= inline_js(@languages, 'public/js') %>
+ <% end %>
+
<script type="text/javascript">
$(document).ready(function() {
setupOnePage()

0 comments on commit 6e71652

Please sign in to comment.