[Koha-bugs] [Bug 35396] Replace Datatables' column filters throttling with input timeout
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 24 15:38:38 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35396
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #159238|0 |1
is obsolete| |
--- Comment #2 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 159242
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159242&action=edit
Bug 35396: Replace Datatables' column filters throttling with input timeout
This patch replaces throttling filter events with a typing timeout for
datatable filtering events. This patch should increase filtering responsiveness
to datatables that have column filtering enabled across Koha.
To test:
1) Get a datatable with multiple results showing in intranet, for example
search patrons with no search string to get all patrons in a filterable
datatable result view or open Receive orders page that shows pending orders and
order lines in Acquisitions like /cgi-bin/koha/acqui/parcel.pl?invoiceid=xxx
2) Type a character into a Datatable column filtering field
=> notice a filtering event fires right after the first character has been
entered
3) Keep typing
=> notice multiple sequential filtering events being fired during the typing
and one at the end when typing has stopped
4) Apply patch
5) Start typing into a filtering field
=> Note that during typing no filtering events are being fired unless the time
between entering characters exceeds 500ms
6) End typing into the filter field
=> notice that just one filtering event fires at the end of typing if
characters were entered sequentially faster than 500ms apart.
Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list