diff options
author | Joe Sak <joe@joesak.com> | 2010-11-20 14:56:39 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2010-11-20 14:56:39 -0600 |
commit | 7e8454d57d8dae42c587c77012466ac55060c286 (patch) | |
tree | 2aeb65ad3c777454534eb20c48e0aba210912d82 /public | |
parent | 44139cb7d87e6578d5b5df1b3b718164e0aad05b (diff) | |
download | refinerycms-blog-7e8454d57d8dae42c587c77012466ac55060c286.tar.gz refinerycms-blog-7e8454d57d8dae42c587c77012466ac55060c286.tar.bz2 refinerycms-blog-7e8454d57d8dae42c587c77012466ac55060c286.zip |
Had some missing markup
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/refinerycms-blog.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/public/javascripts/refinerycms-blog.js b/public/javascripts/refinerycms-blog.js index f55e279..2b887ab 100644 --- a/public/javascripts/refinerycms-blog.js +++ b/public/javascripts/refinerycms-blog.js @@ -1,14 +1,17 @@ $(document).ready(function(){ height = $('#show_blog_post').height(); $('#show_blog_post').height(height); - $('#next_prev_article a:not(".home")').click(function(){ + $('#next_prev_article a:not(".home")').live('click',function(){ url = this.href + ".js"; nav_url = $(this).attr('data-nav-url'); - $('#show_blog_post, #next_prev_article').fadeOut(); + $('#blog_post, #next_prev_article').fadeOut(); $.ajax({ url: url, success: function(data) { - $('#show_blog_post').html(data).fadeIn().height('auto'); + $('#blog_post').html(data).fadeIn() + $('#show_blog_post').animate({ + height: 'auto' + }); $.ajax({ url: nav_url, success: function(data) { |