Bugzilla – Attachment 191485 Details for
Bug 40726
Clicking off of a dropdown in the user menu branch switching closes the dropdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40726: Prevent closing the user menu when clicking off of the dropdown
Bug-40726-Prevent-closing-the-user-menu-when-click.patch (text/plain), 1.96 KB, created by
Lucas Gass (lukeg)
on 2026-01-15 13:22:56 UTC
(
hide
)
Description:
Bug 40726: Prevent closing the user menu when clicking off of the dropdown
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-01-15 13:22:56 UTC
Size:
1.96 KB
patch
obsolete
>From df70d729becfc90a2aa77c12898c1310839948d3 Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >Date: Fri, 29 Aug 2025 14:16:04 +0000 >Subject: [PATCH] Bug 40726: Prevent closing the user menu when clicking off of > the dropdown >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: > >1. In the staff interface click on the user menu (top right corner where it has the user and library branch). >2. Click the gear icon. >3. Try to click a dropdown but miss it and click outside of it (still in the grey box area). >4. View the menu collapsing. >5. Apply the patch & restart all. Refresh your page. >6. Retry steps 1-3. Notice now that when you click within the grey box area around the drop down the user menu no longer closes. However, if you click outside of the dropdown menu (anywhere else on the interface screen) the user menu closes. >7. Sign off รข have an amazing day! :D > >Signed-off-by: noah <noah@inlibro.com> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 3e8f312d274..264ad54f716 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -442,6 +442,19 @@ $(document).ready(function () { > } > }); > >+ (function () { >+ const trigger = document.getElementById("logged-in-menu"); >+ if (trigger) { >+ bootstrap.Dropdown.getOrCreateInstance(trigger, { >+ autoClose: "outside", >+ }); >+ } >+ })(); >+ >+ $("#setlibrary_panel").on("click", function (e) { >+ e.stopPropagation(); >+ }); >+ > $("#logged-in-dropdown").on("hidden.bs.dropdown", function () { > $("#setlibrary_panel") > .removeClass("setlibrary_panel_open") >-- >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 40726
:
185930
|
186152
| 191485