From a700a9f572cf76314f1accadd7e36ecbf08fb716 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 29 Mar 2022 11:48:42 +0000 Subject: [PATCH] Bug 30396: Convert basket groups page tabs to Bootstrap This patch replaces the use of jQueryUI tabs on the basket groups page, in the view where open and closed basket groups are displayed in separate tabs. This patch includes indentation changes, so please ignore whitespace when using your preferred diff tool. To test you should have at least two basket groups set up in Acquisitions, one open and one closed. Go to Acquisitions -> Vendor -> Basket groups and confirm that the "Open" and "Closed" tabs look correct and work correctly. Under the "Closed" tab, try clicking the "Reopen" button. The page will refresh but you should still see the "Closed" tab active. --- .../prog/en/modules/acqui/basketgroup.tt | 169 +++++++++--------- 1 file changed, 86 insertions(+), 83 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt index 7bf2c17cc7..a7e2a33783 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt @@ -106,8 +106,11 @@ fieldset.various li { } $(document).ready(function() { - $("#basket_groups").tabs(); - + [% IF ( listclosed) %] + $("#basket_groups a[href='#closed']").tab("show"); + [% ELSE %] + $("#basket_groups a[href='#opened']").tab("show"); + [% END %] $("table").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, @@ -325,94 +328,94 @@ fieldset.various li {

Basket grouping for [% booksellername | html %]

[% IF (NoEDIMessage) %]
No EDIFACT configuration for [% booksellername | html %]
[% END %]
-
[% END %] -- 2.20.1