Bugzilla – Attachment 174989 Details for
Bug 38536
Patrons requesting modifications: Expand correct panel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38536: Patrons requesting modifications: Expand correct panel
Bug-38536-Patrons-requesting-modifications-Expand-.patch (text/plain), 2.07 KB, created by
Owen Leonard
on 2024-11-26 16:11:55 UTC
(
hide
)
Description:
Bug 38536: Patrons requesting modifications: Expand correct panel
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-11-26 16:11:55 UTC
Size:
2.07 KB
patch
obsolete
>From 3e2ce80bc503cf5e3bc671b9db86f75aa37692e8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 26 Nov 2024 15:57:12 +0000 >Subject: [PATCH] Bug 38536: Patrons requesting modifications: Expand correct > panel > >This patch updates the JavaScript on the patrons requesting modification >page in order to make it work following the upgrade to Bootstrap 5. The >automatic panel expansion is broken. > >To test, apply the patch and enable, if necessary, the OPACPatronDetails >system preference. > >- Log in to the OPAC and submit changes to your personal details. >- Do this again as a different user so that there is more than one > pending request. >- From the staff interface home page, follow the link for "Patrons > requesting modifications" >- Upon loading, the "Update patron records" page should automatically > expand the first panel. >- Locate the patron record for the second of the patrons you requested > updates for. >- From that patron's detail page, follow the "Review pending > modifications" link. >- The panel containing that patron's information should expand by > default. > >Sponsored-by: Athens County Public Libraries >--- > .../intranet-tmpl/prog/en/modules/members/members-update.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >index 9ae3cf2c59..0a34ebe579 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >@@ -223,9 +223,9 @@ > <script> > $(document).ready(function(){ > [%- IF ( active ) -%] >- $("#pending_updates_group a[href='#panel-" + [% active | html %] + "_panel']").click(); >+ $("#panel-" + [% active | html %] + "_panel").collapse("show"); > [%- ELSE -%] >- $("#pending_updates_group a.collapsed:eq(0)").click(); >+ $(".panel-collapse:eq(0)").collapse("show"); > [%- END -%] > }); > </script> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38536
:
174989
|
174991
|
175000