From db17c62240d394ce5898df1e8ad115dc158efb0c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 31 Mar 2022 13:16:46 +0000 Subject: [PATCH] Bug 30417: Switch to Bootstrap tabs on the basic library transfer limit page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch updates the basic library transfer limits page to use Bootstrap tabs instead of jQueryUI. To test, apply the patch and go to Administraion -> Library transfer limits. Test that the tabs look correct and work correctly. The functionality of the page should be unchanged. Signed-off-by: Séverine Queune Signed-off-by: Kyle M Hall --- .../en/modules/admin/branch_transfer_limits.tt | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt index 86f9fa56cb..801eeb7795 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt @@ -53,14 +53,18 @@
-
    - [% FOREACH codes_loo IN codes_loop %]
  • [% codes_loo.code | html %]
  • [% END %] + -
    +
    [% FOREACH codes_loo IN codes_loop %] -
    +

    Policy for [% codes_loo.limit_phrase | html %]: [% codes_loo.code | html %]

    Select all | Clear all

    @@ -90,6 +94,7 @@
    [% END %] +
    @@ -128,7 +133,10 @@ $(this).prop("checked", false); }); }); - $('#transferlimit_tabs').tabs(); + + if( $(".tab-pane.active").length < 1 ){ + $("#transferlimit_tabs a:first").tab("show"); + } $('#branchselect').change(function() { $('#selectlibrary').submit(); -- 2.30.2