]> git.koha-community.org Git - koha.git/commit
Bug 27256: Update click handler for point of sale
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 16 Dec 2020 19:26:11 +0000 (19:26 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 28 Dec 2020 21:41:49 +0000 (21:41 +0000)
commit4d16cddd7cf495f58f509a930377fdf977876647
tree03e8d148889517af546f69f5427a6105fca45901
parent227e59584373257f23f9f8dafc749a6ca88fa7ba
Bug 27256: Update click handler for point of sale

This patch updates the click handler to bind to the table element in the
DOM as aposed to the individual buttons by their classes. We then use
the event propogation and filter on the button class to catch the clicks
we want.

Test plan
1/ Add 22 debit_types that can be sold to the system (or reduce the
datatable paging size)
2/ Confirm that items on the second page of results cannot be added for
sale on the point of sale page.
3/ Apply the patch
4/ Confirm items from the second table page can now be added correctly
5/ Clicking add when navigating to such an item should leave the items
table unmodified.
6/ Clicking aa when the table was filtered should reset the filters
bringing the table back to the first page
7/ Signoff

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 68047132a4888db6eb5169e1cd3ceac49aa84b3b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f0b4ebc2bf74c408102c19bb7c2a85279762f691)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt