From e23af6bca75532ed7377462f10efa4ca9c002acc Mon Sep 17 00:00:00 2001 From: Kyle Wilkinson Date: Tue, 21 Jun 2011 03:13:28 -0700 Subject: Call tabs() method on admin tabs section only after the document is ready. This fixes the problem where the teaser editor was showing with a width of 0. Set the active tab to the initial tab on the blog post editor. --- app/views/admin/blog/posts/_form.html.erb | 2 +- app/views/admin/blog/posts/_form.js.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb index 4eb4cf4..20a8fe1 100644 --- a/app/views/admin/blog/posts/_form.html.erb +++ b/app/views/admin/blog/posts/_form.html.erb @@ -13,7 +13,7 @@
    -
  • +
  • <%= link_to "Body", "#page_part_body" %>
  • diff --git a/app/views/admin/blog/posts/_form.js.erb b/app/views/admin/blog/posts/_form.js.erb index b829ec2..9ad8c19 100644 --- a/app/views/admin/blog/posts/_form.js.erb +++ b/app/views/admin/blog/posts/_form.js.erb @@ -1,5 +1,7 @@ -- cgit v1.2.3