mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
Fixes #255
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user