From de954c625840adb7c1e98f1c675e56bb5e3074d7 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Wed, 20 May 2015 12:05:03 +1200 Subject: remove JS from tests for reliability and dramatic speed increase. --- app/assets/javascripts/refinery/blog/backend.js | 2 ++ app/views/refinery/blog/admin/posts/_form.html.erb | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/assets/javascripts/refinery/blog/backend.js b/app/assets/javascripts/refinery/blog/backend.js index f27f837..ee9313a 100644 --- a/app/assets/javascripts/refinery/blog/backend.js +++ b/app/assets/javascripts/refinery/blog/backend.js @@ -1,6 +1,8 @@ //= require jquery-ui/autocomplete $(document).ready(function(){ + $('#more_options').hide() + $('nav#actions.multilist > ul:not(.search_list) li a[href$="' + window.location.pathname + '"]') .parent().addClass('selected'); if($('nav#actions.multilist > ul:not(.search_list) li.selected').length == 0) { diff --git a/app/views/refinery/blog/admin/posts/_form.html.erb b/app/views/refinery/blog/admin/posts/_form.html.erb index 5cb061e..26b9f78 100644 --- a/app/views/refinery/blog/admin/posts/_form.html.erb +++ b/app/views/refinery/blog/admin/posts/_form.html.erb @@ -40,14 +40,14 @@ - <%= render '/refinery/admin/form_advanced_options_menu', :f => f %> -
<%= f.label :tag_list, t('refinery.blog.shared.tags.title') -%> <%= f.text_field :tag_list, value: @post.tag_list.to_s, :class => 'larger' -%>
-