aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <git@p.arndt.io>2015-05-20 12:05:03 +1200
committerPhilip Arndt <git@p.arndt.io>2015-05-20 12:05:03 +1200
commitde954c625840adb7c1e98f1c675e56bb5e3074d7 (patch)
treebd2d2eb793f5a19847eba7d6e4efedc74fa1f5e0 /app
parent99cdd519b209e05a6ed9ab81f23d22bd11b2490f (diff)
downloadrefinerycms-blog-de954c625840adb7c1e98f1c675e56bb5e3074d7.tar.gz
refinerycms-blog-de954c625840adb7c1e98f1c675e56bb5e3074d7.tar.bz2
refinerycms-blog-de954c625840adb7c1e98f1c675e56bb5e3074d7.zip
remove JS from tests for reliability and dramatic speed increase.
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/refinery/blog/backend.js2
-rw-r--r--app/views/refinery/blog/admin/posts/_form.html.erb6
2 files changed, 5 insertions, 3 deletions
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 @@
</div>
</div>
- <%= render '/refinery/admin/form_advanced_options_menu', :f => f %>
-
<div class='field'>
<%= f.label :tag_list, t('refinery.blog.shared.tags.title') -%>
<%= f.text_field :tag_list, value: @post.tag_list.to_s, :class => 'larger' -%>
</div>
- <div id='more_options' style="display:none;">
+ <%= render '/refinery/admin/form_advanced_options_menu', :f => f %>
+
+ <div id='more_options'>
<div class="hemisquare">
<h3><%= t('title', :scope => 'refinery.blog.admin.submenu.categories') %></h3>
<ul class='blog_categories'>