Lines 153-158
Link Here
|
153 |
|
153 |
|
154 |
[% MACRO jsinclude BLOCK %] |
154 |
[% MACRO jsinclude BLOCK %] |
155 |
[% Asset.js("js/admin-menu.js") | $raw %] |
155 |
[% Asset.js("js/admin-menu.js") | $raw %] |
|
|
156 |
[% Asset.js("js/form-submit.js") | $raw %] |
156 |
[% INCLUDE 'js-date-format.inc' %] |
157 |
[% INCLUDE 'js-date-format.inc' %] |
157 |
[% INCLUDE 'datatables.inc' %] |
158 |
[% INCLUDE 'datatables.inc' %] |
158 |
<script> |
159 |
<script> |
Lines 325-331
Link Here
|
325 |
"data": function( row, type, val, meta ) { |
326 |
"data": function( row, type, val, meta ) { |
326 |
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"; |
327 |
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"; |
327 |
if ( row.status == 'new' || row.status == 'started' ) { |
328 |
if ( row.status == 'new' || row.status == 'started' ) { |
328 |
result += '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/background_jobs.pl?op=cancel&id='+ encodeURIComponent(row.job_id) +'"><i class="fa fa-trash-can" aria-hidden="true"></i> '+_("Cancel")+'</a>'; |
329 |
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>'; |
329 |
} |
330 |
} |
330 |
return result; |
331 |
return result; |
331 |
}, |
332 |
}, |
332 |
- |
|
|