Bug 24337: Checkout note cannot be marked seen if more than 20 exist
authorOwen Leonard <oleonard@myacpl.org>
Fri, 3 Jan 2020 20:02:26 +0000 (20:02 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 Jan 2020 10:50:37 +0000 (10:50 +0000)
commit1c38ddf41032a7da72ce8dedead385e581bf1ff6
tree71fb3ecf1c6e222ab9bb62a0dc648a6cd95211e6
parentf78eaf0461b4a685b3e13856f4c738a6429c0514
Bug 24337: Checkout note cannot be marked seen if more than 20 exist

This patch modifies the event handler on the individual "Mark seen" /
"Mark unseen" buttons in the table of checkout notes. For an event to be
successfully attached to a hidden element it must be given a context.

To test you should have multiple checkout notes to work with, both seen
and unseen. Apply the patch and go to "Checkout notes pending" from the
staff client home page.

 - Navigate to the second "page" of data in the DataTable.
 - Test the functionality of the "Mark seen" and "Mark unseen" buttons.
   They should work correctly.

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt