Bugzilla – Attachment 191313 Details for
Bug 41564
Tidy kohaTable block - admin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41564: Tidy kohaTable - admin/background_jobs.tt
Bug-41564-Tidy-kohaTable---adminbackgroundjobstt.patch (text/plain), 3.13 KB, created by
Owen Leonard
on 2026-01-12 19:35:57 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/background_jobs.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-12 19:35:57 UTC
Size:
3.13 KB
patch
obsolete
>From 859a67b55cc5e28ad14c4a571b5212c9da8b4e75 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 10:52:53 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - admin/background_jobs.tt > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/admin/background_jobs.tt | 18 +++++++++++++----- > 1 file changed, 13 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >index f0723ad93f0..78fac298b2b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >@@ -238,6 +238,14 @@ > [% END %] > ]; > >+ const op = "[% op | html %]"; >+ const job = { >+ status: "[% job.status | html %]", >+ type: "[% job.type | html %]", >+ }; >+ </script> >+ >+ <script> > function get_job_type (job_type) { > let job_type_lib = job_types.find( t => t._id == job_type ); > if ( job_type_lib ) { >@@ -247,11 +255,11 @@ > } > > $(document).ready(function() { >- [% IF op == 'view' %] >- $("#job_status_description").html( get_job_status("[% job.status | html %]") ); >- $("#job_type_description").html( get_job_type("[% job.type | html %]") ); >+ if (op == 'view'){ >+ $("#job_status_description").html( get_job_status(job.status) ); >+ $("#job_type_description").html( get_job_type(job.type) ); > $("#job_details").show(); >- [% END %] >+ } > > let only_current_filter = function(){ > if ( $("#only_current").is(":checked") ) { >@@ -324,7 +332,7 @@ > data: function( row, type, val, meta ) { > var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id='+ encodeURIComponent(row.job_id) +'"><i class="fa-solid fa-eye aria-hidden="true"></i> '+_("View")+'</a>'+"\n"; > if ( row.status == 'new' || row.status == 'started' ) { >- result += '<a class="btn btn-default btn-xs submit-form-link" role="button" href="#" data-action="/cgi-bin/koha/admin/background_jobs.pl" data-method="post" data-op="cud-cancel" data-confirmation-msg="[% t('Are you sure you want to cancel this job?') | html %]" data-id="'+ encodeURIComponent(row.job_id) +'"><i class="fa fa-trash-can" aria-hidden="true"></i> '+_("Cancel")+'</a>'; >+ result += '<a class="btn btn-default btn-xs submit-form-link" role="button" href="#" data-action="/cgi-bin/koha/admin/background_jobs.pl" data-method="post" data-op="cud-cancel" data-confirmation-msg="' + _("Are you sure you want to cancel this job?") + '" data-id="'+ encodeURIComponent(row.job_id) +'"><i class="fa fa-trash-can" aria-hidden="true"></i> '+_("Cancel")+'</a>'; > } > return result; > }, >-- >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 41564
:
191082
|
191083
|
191084
|
191085
|
191086
|
191087
|
191088
|
191089
|
191090
|
191091
|
191092
|
191093
|
191094
|
191095
|
191096
|
191097
|
191098
|
191099
|
191100
|
191310
|
191311
|
191312
| 191313 |
191314
|
191315
|
191316
|
191317
|
191318
|
191319
|
191320
|
191321
|
191322
|
191323
|
191324
|
191325
|
191326
|
191327
|
191328
|
191329