Bug 11274 Sent Notices Tab Not Working Correctly
authorOwen Leonard <oleonard@myacpl.org>
Mon, 21 Nov 2016 13:26:13 +0000 (08:26 -0500)
committerMason James <mtj@kohaaloha.com>
Tue, 3 Jan 2017 01:44:41 +0000 (14:44 +1300)
commit5fbdb04758080167e3ebf59b48d1759d863fbd6b
treef1d19878abd4d525232c23157d0ab566779aa9ac
parent06438c671a68f5d9f0b7caca56bf4e97cf7069b1
Bug 11274 Sent Notices Tab Not Working Correctly

This patch implements the notices toggle event using a different method.
Using on() lets us bind the event to a parent element, allowing the
event to attach to elements which may not exist on the page yet.

Test plan the same as original patch:

1) have a patron with more then 20 notices sent
2) go to patron profile -> notices
-> without patch, the showing/hidding of notices content does work
correctly only on first loaded page
-> with patch, it should work correctly everywhere - try to use
paginator, searching, ordering....

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt