diff options
author | Joe Sak <joe@joesak.com> | 2010-11-20 15:38:28 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2010-11-20 15:38:28 -0600 |
commit | da581331c706f46dfd119d1e532152c93fdd8c58 (patch) | |
tree | bf6b295b88f003d55e721aa803b07b8bb9e66618 /public | |
parent | b617d540b96d1a711ad42e93c37e3eda9a1e1fb3 (diff) | |
download | refinerycms-blog-da581331c706f46dfd119d1e532152c93fdd8c58.tar.gz refinerycms-blog-da581331c706f46dfd119d1e532152c93fdd8c58.tar.bz2 refinerycms-blog-da581331c706f46dfd119d1e532152c93fdd8c58.zip |
total refactor here
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/refinerycms-blog.js | 15 |
1 files changed, 2 insertions, 13 deletions
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 |