This commit is contained in:
Klaus Silveira
2013-03-28 23:09:05 -03:00
parent e93e986b12
commit cb71550e7e

View File

@@ -27,15 +27,16 @@ $(function () {
function paginate() {
var $pager = $('.pager');
$pager.find('.next a').one('click', function (e) {
e.preventDefault();
$(this).css('pointer-events', 'none');
$.get(this.href, function (html) {
$pager.after(html);
$pager.remove();
paginate();
});
});
$pager.find('.previous').remove();
}
paginate();