Bugzilla – Attachment 174059 Details for
Bug 37912
Catalog concerns - Broken link under concern title
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37912: Restore detail-trigger handling
Bug-37912-Restore-detail-trigger-handling.patch (text/plain), 1.87 KB, created by
Aleisha Amohia
on 2024-11-06 03:09:14 UTC
(
hide
)
Description:
Bug 37912: Restore detail-trigger handling
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2024-11-06 03:09:14 UTC
Size:
1.87 KB
patch
obsolete
>From 3eb91e452111b0eadf933692b30f697f7882c894 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 29 Oct 2024 15:16:42 +0000 >Subject: [PATCH] Bug 37912: Restore detail-trigger handling > >This patch converts our jQuery based click to native JS and restores the >bootstrap modal button click trigger handling. > >Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov> >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> >--- > .../prog/js/modals/display_ticket.js | 19 ++++++++++++++----- > 1 file changed, 14 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/modals/display_ticket.js b/koha-tmpl/intranet-tmpl/prog/js/modals/display_ticket.js >index 43d32fd83e0..faa19cef3a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/modals/display_ticket.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/modals/display_ticket.js >@@ -1,11 +1,20 @@ > /* keep tidy */ > $(document).ready(function () { >- $("#table_concerns").on("click", ".detail-trigger", function () { >- // Find the main trigger anchor within the same table row >- var $mainTrigger = $(this).closest("tr").find(".main-trigger"); >+ document.addEventListener("click", function (event) { >+ const detailTrigger = event.target.closest(".detail-trigger"); >+ if (detailTrigger) { >+ event.preventDefault(); > >- // Trigger the click event of the main trigger anchor >- $mainTrigger.trigger("click"); >+ // Find the main trigger button in the same row >+ const mainTrigger = detailTrigger >+ .closest("tr") >+ .querySelector(".main-trigger"); >+ >+ // Trigger a click on the main trigger if it exists >+ if (mainTrigger) { >+ mainTrigger.click(); >+ } >+ } > }); > > $("#ticketDetailsModal").on("show.bs.modal", function (event) { >-- >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 37912
:
173662
|
173684
|
173685
| 174059