Bugzilla – Attachment 191163 Details for
Bug 41580
Tidy kohaTable block - tools
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41580: Tidy kohaTable - tools/batch_delete_records.tt
4cc3cd0.patch (text/plain), 1.75 KB, created by
Jonathan Druart
on 2026-01-09 14:53:36 UTC
(
hide
)
Description:
Bug 41580: Tidy kohaTable - tools/batch_delete_records.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:53:36 UTC
Size:
1.75 KB
patch
obsolete
>From 4cc3cd057d2981d215882cea3e26228d2ee2d88d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 15:47:53 +0100 >Subject: [PATCH] Bug 41580: Tidy kohaTable - tools/batch_delete_records.tt > >--- > .../prog/en/modules/tools/batch_delete_records.tt | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >index 1bfd843ed77..c2e6a6aafa4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >@@ -263,6 +263,10 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >+ <script> >+ const record_type = "[% recordtype | html %]"; >+ </script> >+ > <script> > var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out."); > $(document).ready(function() { >@@ -337,14 +341,14 @@ > > $("#selectall").click(); > >- //Show a red cross if a biblio cannot be deleted >- [% IF recordtype == 'biblio' %] >+ // Show a red cross if a biblio cannot be deleted >+ if (recordtype == 'biblio'){ > $(".records input:checkbox[data-issues!='0']").each(function(){ > $(this).parents('tr').find('td').css('background-color', '#ffff99') > $(this).replaceWith("<span class='error'><i class='fa fa-times fa-lg'></i></span>") > $(".records i").attr('title', MSG_CANNOT_BE_DELETED) > }); >- [% END %] >+ } > > $("#biblios").kohaTable({ > columnDefs: [ >-- >2.43.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 41580
: 191163 |
191164
|
191165
|
191166
|
191167
|
191168
|
191169
|
191170
|
191171