Bugzilla – Attachment 173398 Details for
Bug 38275
Unable to delete patron card creator images
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38275: Ensure that the script block is loaded after the HTML elements are available.
Bug-38275-Ensure-that-the-script-block-is-loaded-a.patch (text/plain), 2.15 KB, created by
Laura Escamilla
on 2024-10-25 15:43:49 UTC
(
hide
)
Description:
Bug 38275: Ensure that the script block is loaded after the HTML elements are available.
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2024-10-25 15:43:49 UTC
Size:
2.15 KB
patch
obsolete
>From 34db8d9f9e2b920d68513b72f26e11207c305e98 Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >Date: Fri, 25 Oct 2024 15:31:42 +0000 >Subject: [PATCH] Bug 38275: Ensure that the script block is loaded after the > HTML elements are available. > >--- > .../en/modules/patroncards/image-manage.tt | 20 ++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt >index 73d6aff04a..d83f497f42 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt >@@ -131,7 +131,7 @@ > <h3>Image(s) successfully deleted</h3> > </div> > [% END %] >- </fieldset> >+ </field > <fieldset class="action"> > <input type="hidden" name="op" value="cud-delete" /> > <input class="btn btn-primary" type="button" id="delete" value="Delete selected" /> >@@ -164,6 +164,16 @@ > > [% MACRO jsinclude BLOCK %] > <script> >+ >+ $(document).ready(function() { >+ $("#delete").click(function(){ >+ return DeleteConfirm(); >+ }); >+ $(".delete_image").on("click", function(){ >+ return confirmDelete( _("Are you sure you want to delete this image?") ); >+ }); >+ }); >+ > function DeleteConfirm() { > var results = selected_images("delete"); > if (results.images) { >@@ -197,14 +207,6 @@ > } > return (-1); > } >- $(document).ready(function() { >- $("#delete").click(function(){ >- return DeleteConfirm(); >- }); >- $(".delete_image").on("click", function(){ >- return confirmDelete( _("Are you sure you want to delete this image?") ); >- }); >- }); > </script> > [% END %] > >-- >2.39.2
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 38275
:
173397
|
173398
|
173407
|
173408
|
173419
|
173420
|
173434