aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/admin/blog/posts/_form.html.erb2
-rw-r--r--app/views/admin/blog/posts/_form.js.erb4
2 files changed, 4 insertions, 2 deletions
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 @@
<div class='field'>
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
<ul id='page_parts'>
- <li class='ui-state-default'>
+ <li class='ui-state-default ui-state-active'>
<%= link_to "Body", "#page_part_body" %>
</li>
<li class='ui-state-default'>
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 @@
<script>
(function($) {
- $('#page-tabs').tabs();
+ $(function() {
+ $('#page-tabs').tabs();
+ });
})(jQuery);
</script>