Bug 14699: Fix intranet search history issues due to pagination
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 20 Aug 2015 13:38:59 +0000 (15:38 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 29 Nov 2016 22:44:37 +0000 (23:44 +0100)
commit0e2c857dbb4e4a512548c2838b2e6a10bbfb5211
treefd5197f1048e136027e7b75fa6c1c9fe36616195
parent45d791658d82de51dce7c9e98b94750297dfc2d8
Bug 14699: Fix intranet search history issues due to pagination

DataTables removes hidden rows from the DOM. Because of that, "Select
all", "Clear all" and the form submission don't work correctly
(basically they act only on the currently displayed page).

This patch fixes just that.

Test plan:
1/ Go to your search history page
2/ Make you sure you have at least 21 entries in your search history. If
not, do some searches and come back here.
3/ Click "Select all" and change page. The checkboxes on the new page
should be checked.
4/ Check some checkboxes on this new page and click "Clear all". Go back
to the previous page, checkboxes shouldn't be checked.
5/ Check some checkboxes on at least 2 different pages and click
"Delete". All selected search history entries should be deleted.

Followed test plan. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt