Nextdoor / ndscheduler

A flexible python library for building your own cron-like system, with REST APIs and a Web UI.
BSD 2-Clause "Simplified" License
1.08k stars 202 forks source link

Fix result modal working only on first table page #17

Open MoshiMoshi0 opened 7 years ago

MoshiMoshi0 commented 7 years ago

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 commented 7 years ago

@swaggy could you merge this PR?