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() { function paginate() {
var $pager = $('.pager'); var $pager = $('.pager');
$pager.find('.next a').one('click', function (e) { $pager.find('.next a').one('click', function (e) {
e.preventDefault(); e.preventDefault();
$(this).css('pointer-events', 'none');
$.get(this.href, function (html) { $.get(this.href, function (html) {
$pager.after(html); $pager.after(html);
$pager.remove(); $pager.remove();
paginate(); paginate();
}); });
}); });
$pager.find('.previous').remove(); $pager.find('.previous').remove();
} }
paginate(); paginate();