Add Page Moved Trigger to moveToPage #153

Merged
merged 1 commit into from Oct 15, 2012

Conversation

Projects
None yet
2 participants
Contributor

ViViDboarder commented Oct 15, 2012

Adding a new trigger to the end of the moveToPage function so that
async events can be added by the user to be triggered whenever new data
is shown on the table.

@ViViDboarder ViViDboarder Add Page Moved Trigger to moveToPage
Adding a new trigger to the end of the moveToPage function so that
async events can be added by the user to be triggered whenever new data
is shown on the table.
9735aac

Mottie commented on 9735aac Oct 15, 2012

This looks like a nice addition, thanks!

Mottie merged commit a8e13d6 into Mottie:master Oct 15, 2012

Owner

Mottie commented Oct 15, 2012

Hmm, actually the pagerChange event is fired when the renderAjax function has completed processing data.

So actually, pageMoved is most likely fired before the ajax call completes.

Contributor

ViViDboarder commented Oct 15, 2012

Right, I actually use it to trigger an ajax call. So after the page moves it calls back to pageMoved which pings my server and updates some of the table.

@Mottie Mottie added a commit that referenced this pull request Oct 15, 2012

@Mottie Mottie new pager events - issue #153
Added "pagerInitialized" and "pageMoved" thanks to ViViDboarder
4f1aa02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment