Commit 0085008d43faa303357f7cd8dfb23bd62869c7f9

Authored by Braulio Bhavamitra
1 parent 0ab9e1e9

Move theme js into head

app/helpers/layout_helper.rb
... ... @@ -17,6 +17,8 @@ module LayoutHelper
17 17 unless plugins_javascripts.empty?
18 18 output += javascript_include_tag plugins_javascripts, :cache => "cache/plugins-#{Digest::MD5.hexdigest plugins_javascripts.to_s}"
19 19 end
  20 + output += theme_javascript_ng.to_s
  21 +
20 22 output
21 23 end
22 24  
... ...
app/views/layouts/application-ng.html.erb
... ... @@ -81,7 +81,6 @@
81 81 <%= theme_footer %>
82 82 </div><!-- end id="theme-footer" -->
83 83 <%= noosfero_layout_features %>
84   - <%= theme_javascript_ng %>
85 84 <%= addthis_javascript %>
86 85 <%=
87 86 @plugins.dispatch(:body_ending).map do |content|
... ...