Bug 20468: (follow-up) Changes to checkbox/menu interactions
authorOwen Leonard <oleonard@myacpl.org>
Fri, 1 Jun 2018 16:28:29 +0000 (16:28 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 10 Aug 2018 10:00:56 +0000 (10:00 +0000)
commit436f4b9e0eb19eea491ecc70a2a996a8297f3d33
tree79163d7ae46ad75515fef5ca193a9aa929ff9016
parent0989d37c23d7d9a775d516395dbe69339928aff9
Bug 20468: (follow-up) Changes to checkbox/menu interactions

This patch makes a couple of minor interface changes and updates the way
checkbox change events are handled:

 - jQueryUI tabs initialization sets a variable for "active table" which
   can be re-used by functions which affect only the visible table.
 - The batch "Actions" menu is shown or hidden based on whether there
   are checked items.
 - The item selection tools are shown or hidden based on whether there
   are rows in the table.

To test, apply the patch and test various article request actions:

 - Single "process," "complete," and "cancel" operations.
 - Select all/ clear all operations on both tabs.
 - Batch operations with checked requests.
 - Process all pending requests to confirm the selection controls for
   that table are hidden.
 - Complete all processing requests to confirm the selection controls
   for that table are hidden.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt