Bug 20468: (QA follow-up) Deactivate select/clear all for empty tab
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 2 Jul 2018 12:08:59 +0000 (14:08 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 10 Aug 2018 10:00:57 +0000 (10:00 +0000)
This only pertains to the second (Processing) tab.

Test plan:
[1] Have one entry in Pending and zero in Processing.
[2] Click on Processing tab.
[3] Without this patch, you would see Select all/Clear all.
    With this patch, you won't.

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

index c43cc75..8a2a073 100644 (file)
             $('#article-request-tabs').tabs({
                 activate: function( activate_event, activate_ui ) {
                     active_table = activate_ui.newPanel.selector;
+                    activateBatchActions( active_table );
                 },
                 create: function( create_event, create_ui ){
                     active_table = create_ui.panel.selector;