From 0085008d43faa303357f7cd8dfb23bd62869c7f9 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 11 Nov 2013 13:13:09 -0300 Subject: [PATCH] Move theme js into head --- app/helpers/layout_helper.rb | 2 ++ app/views/layouts/application-ng.html.erb | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index 126e855..0b72b5d 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -17,6 +17,8 @@ module LayoutHelper unless plugins_javascripts.empty? output += javascript_include_tag plugins_javascripts, :cache => "cache/plugins-#{Digest::MD5.hexdigest plugins_javascripts.to_s}" end + output += theme_javascript_ng.to_s + output end diff --git a/app/views/layouts/application-ng.html.erb b/app/views/layouts/application-ng.html.erb index 754d78f..cf046e5 100644 --- a/app/views/layouts/application-ng.html.erb +++ b/app/views/layouts/application-ng.html.erb @@ -81,7 +81,6 @@ <%= theme_footer %> <%= noosfero_layout_features %> - <%= theme_javascript_ng %> <%= addthis_javascript %> <%= @plugins.dispatch(:body_ending).map do |content| -- libgit2 0.21.2