Important pagination correction

This commit is contained in:
echarp 2016-01-18 00:24:53 +01:00
parent cd8e7eea9a
commit 449e0e191d
1 changed files with 14 additions and 9 deletions

View File

@ -1,10 +1,15 @@
# Automatic ajax pagination
# To not setup pagination twice
pager = true
$(document).ready ->
$('.pagination .next a')
.attr('data-remote', true)
.click ->
$('#loading').fadeIn()
if pager
pager = false
$(document).on 'ajax:success', '.pagination .next a', (event, data, status, xhr) ->
$('#loading').fadeOut()
elts = $('tbody tr', data)