Skip to content

Fix result modal working only on first table page#17

Open
MoshiMoshi0 wants to merge 3 commits into
Nextdoor:masterfrom
MoshiMoshi0:master
Open

Fix result modal working only on first table page#17
MoshiMoshi0 wants to merge 3 commits into
Nextdoor:masterfrom
MoshiMoshi0:master

Conversation

@MoshiMoshi0

@MoshiMoshi0 MoshiMoshi0 commented May 19, 2017

Copy link
Copy Markdown
Contributor

When using pagination, dataTables adds and removes <tr>'s from the DOM on every page change which causes new buttons to not have any 'click' callbacks.

The fix is to move the 'click' callback from each button to 'tbody' and use a selector instead.

@wenbinf wenbinf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenbinf

wenbinf commented May 22, 2017

Copy link
Copy Markdown
Contributor

@swaggy could you merge this PR?

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