Bugzilla – Attachment 174843 Details for
Bug 38495
Cannot cancel background job (CSRF)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38495: (follow-up) Add a confirmation message
Bug-38495-follow-up-Add-a-confirmation-message.patch (text/plain), 1.92 KB, created by
Nick Clemens (kidclamp)
on 2024-11-20 13:55:34 UTC
(
hide
)
Description:
Bug 38495: (follow-up) Add a confirmation message
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-11-20 13:55:34 UTC
Size:
1.92 KB
patch
obsolete
>From 5d7eaf6b5192caca00910a2f20cb1edd492164f0 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 20 Nov 2024 13:55:21 +0000 >Subject: [PATCH] Bug 38495: (follow-up) Add a confirmation message > >--- > .../intranet-tmpl/prog/en/modules/admin/background_jobs.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 9377dc367d4..657eff7b609 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 >@@ -326,7 +326,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-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="[% t('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 38495
:
174841
|
174842
|
174843
|
174910
|
174911