Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a callback function for the pager plugin when the table refresh #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Morialkar
Copy link

I had a table with button in the rows and when the page changed, the bindings were destroyed, so I added a callback that hooks in the updatePageDisplay function to insert the bindings.

@Mottie
Copy link
Collaborator

Mottie commented Jun 13, 2015

It would be better to bind to elements using delegated events instead of rebinding on every page change, e.g.

$( 'tbody' ).on( 'click', 'button', function(){
  // do something when a button is clicked 
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants