Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

$(document).ready(function(){
        $('ul.pager li a').click(function(event){
                event.preventDefault();
                var text = $(this).html();
                var that = this;
                $(this).html('Loading...');
                $.get($(this).attr('href'),null,function(data){
                        $(that).html(text);
                        $('html,body').animate({ scrollTop: "0px" }, 'slow');
                        $('#posts').html(data);
                });
        });
});