From ef6daecce8478855cd2bfe86bdfb98a9b0dfbd82 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 7 Aug 2018 12:49:15 +0000 Subject: [PATCH] Bug 20970: (follow-up) Reformat basket information on acquisitions basket page This patch adds auto-submit to the branch and basket group selection forms. To test, apply the patch and view a basket in acquisitions. Test the process of changing the managing library and basket group. In both cases, selecting an choice from the dropdown should automatically submit the form. Test as a user with and without permission to manage basket groups. --- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 89 +++++++++++----------- 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index ae9fc4b..a2b7149 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -257,7 +257,7 @@  
- [% FOREACH branch IN branches_loop %] [% IF (branch.selected) %] @@ -267,12 +267,9 @@ [% END %] [% END %] + Cancel -

- - Cancel -

@@ -307,9 +304,6 @@ [% IF ( closedate ) %] - [% IF ( CAN_user_acquisition_group_manage ) %] -
- [% END %]
  1. Basket group: @@ -330,47 +324,47 @@ No group [%- END -%] [% ELSE %] - [% IF ( basketgroup.id ) %] - [% basketgroup.name %] - Change basket group - [% ELSE %] - No group - Set basket group - [% END %] -
  2. - + [% IF ( CAN_user_acquisition_group_manage ) %] + + [% END # /IF ( CAN_user_acquisition_group_manage ) %]
- [% IF ( CAN_user_acquisition_group_manage ) %] - - [% END %] - [% END %] + [% END # /IF closeddate %] @@ -861,6 +855,8 @@ $("#basketgroupid").change(function(){ if($(this).val() == "new"){ location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]"; + } else { + $(this).parent().submit(); } }); }); @@ -909,6 +905,9 @@ location.href = url; return false; }); + $("#select_managing_library").on("change", function(){ + $(this).parent().submit(); + }); }); function UserSearchPopup(f) { -- 2.1.4