From 5cdb29dfe832f30f96f2459d1092ba56c6b3e862 Mon Sep 17 00:00:00 2001 From: suweller Date: Sun, 21 Nov 2010 12:24:07 +0100 Subject: javascript should be in javascripts section --- app/views/admin/blog/posts/_form.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb index 941dd03..692dafa 100644 --- a/app/views/admin/blog/posts/_form.html.erb +++ b/app/views/admin/blog/posts/_form.html.erb @@ -65,6 +65,8 @@ padding: 0px; } +<% end %> +<% content_for :javascripts do %> -<% end %> \ No newline at end of file +<% end %> -- cgit v1.2.3 From affa60ef2a503bf68181c25f1507381723be92a1 Mon Sep 17 00:00:00 2001 From: suweller Date: Sun, 21 Nov 2010 13:30:23 +0100 Subject: place all script occurrences in content_for :javascripts --- app/views/admin/blog/_submenu.html.erb | 4 +++- app/views/admin/blog/comments/show.html.erb | 2 +- app/views/blog/posts/show.html.erb | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb index 5c93891..c7da051 100644 --- a/app/views/admin/blog/_submenu.html.erb +++ b/app/views/admin/blog/_submenu.html.erb @@ -80,5 +80,7 @@ <% content_for :head do %> <%= stylesheet_link_tag 'refinery/refinerycms-blog' %> +<% end %> +<% content_for :javascripts do %> <%= javascript_include_tag 'refinery/refinerycms-blog' %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/admin/blog/comments/show.html.erb b/app/views/admin/blog/comments/show.html.erb index 1cc29bb..21cb405 100644 --- a/app/views/admin/blog/comments/show.html.erb +++ b/app/views/admin/blog/comments/show.html.erb @@ -60,4 +60,4 @@ -<% content_for :head, stylesheet_link_tag('refinery/refinerycms-blog') %> \ No newline at end of file +<% content_for :head, stylesheet_link_tag('refinery/refinerycms-blog') %> diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb index f8d4b35..d959956 100644 --- a/app/views/blog/posts/show.html.erb +++ b/app/views/blog/posts/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :head do %> +<% content_for :javascripts do %> <% if BlogPost::ShareThis.enabled? %>