Bug 11274 Sent Notices Tab Not Working Correctly
authorOwen Leonard <oleonard@myacpl.org>
Mon, 21 Nov 2016 13:26:13 +0000 (08:26 -0500)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Dec 2016 11:11:22 +0000 (11:11 +0000)
commit6163337cd8caab98db993e4d51ac73abbdd83b86
tree60004593306fedbf2828cc02e748f53e4fe4e64e
parent604c56c088a224cd0fa4c536e93967c89da78462
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: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt