blob: 5b586a058e4c49724558ccf6badbc5f623484fa2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$(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();
$.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').animate({
height: 'auto'
});
return false;
})
})
|