Bugzilla – Attachment 173662 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.75 KB, created by
Martin Renvoize (ashimema)
on 2024-10-29 15:20:50 UTC
(
hide
)
Description:
Bug 37912: Restore detail-trigger handling
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-10-29 15:20:50 UTC
Size:
1.75 KB
patch
obsolete
>From 1fcedc94b1d5136f3d423e414537ffea0a66d402 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. >--- > .../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.47.0
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