From da581331c706f46dfd119d1e532152c93fdd8c58 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Sat, 20 Nov 2010 15:38:28 -0600 Subject: total refactor here --- public/javascripts/refinerycms-blog.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'public/javascripts/refinerycms-blog.js') diff --git a/public/javascripts/refinerycms-blog.js b/public/javascripts/refinerycms-blog.js index 5b586a0..c5512d2 100644 --- a/public/javascripts/refinerycms-blog.js +++ b/public/javascripts/refinerycms-blog.js @@ -1,25 +1,14 @@ $(document).ready(function(){ - height = $('#show_blog_post').height(); - $('#show_blog_post').height(height); $('#next_prev_article a:not(".home")').live('click',function(){ url = this.href + ".js"; nav_url = $(this).attr('data-nav-url'); - $('#blog_post, #next_prev_article').fadeOut(); + $('#show_blog_post').fadeOut(); $.ajax({ url: url, success: function(data) { - $('#blog_post').html(data).fadeIn(); - $.ajax({ - url: nav_url, - success: function(data) { - $('#next_prev_article').html(data).fadeIn(); - } - }) + $('#show_blog_post').html(data).fadeIn(); } }); - $('#show_blog_post').animate({ - height: 'auto' - }); return false; }) }) \ No newline at end of file -- cgit v1.2.3