|
Lines 408-418
$(document).ready(function() {
Link Here
|
| 408 |
"orderable": false, |
408 |
"orderable": false, |
| 409 |
"searchable": false, |
409 |
"searchable": false, |
| 410 |
"render": function( data, type, row, meta ) { |
410 |
"render": function( data, type, row, meta ) { |
| 411 |
return '<a class="btn btn-default btn-sm" ' + |
411 |
return render_table_actions(data); |
| 412 |
'href="/cgi-bin/koha/ill/ill-requests.pl?' + |
|
|
| 413 |
'method=illview&illrequest_id=' + |
| 414 |
encodeURIComponent(data) + |
| 415 |
'">' + ill_manage + '</a>'; |
| 416 |
} |
412 |
} |
| 417 |
} |
413 |
} |
| 418 |
] |
414 |
] |
|
Lines 420-425
$(document).ready(function() {
Link Here
|
| 420 |
|
416 |
|
| 421 |
$("#illfilter_form").on('submit', filter); |
417 |
$("#illfilter_form").on('submit', filter); |
| 422 |
|
418 |
|
|
|
419 |
function render_table_actions(data) { |
| 420 |
let actions_string = ""; |
| 421 |
ill_table_actions.forEach((ill_table_action) => { |
| 422 |
let link_data = ill_table_action.append_column_data_to_link |
| 423 |
? encodeURIComponent(data) |
| 424 |
: ""; |
| 425 |
let link_text = ill_table_action.button_link_translatable_text |
| 426 |
? eval(ill_table_action.button_link_translatable_text) |
| 427 |
: ill_table_action.button_link_text; |
| 428 |
actions_string += `<a class="${ill_table_action.button_class}" href="${ill_table_action.button_link}${link_data}">${link_text}</a>`; |
| 429 |
}); |
| 430 |
return actions_string; |
| 431 |
} |
| 432 |
|
| 423 |
function redrawTable() { |
433 |
function redrawTable() { |
| 424 |
let table_dt = ill_requests_table.DataTable(); |
434 |
let table_dt = ill_requests_table.DataTable(); |
| 425 |
table_dt.draw(); |
435 |
table_dt.draw(); |
| 426 |
- |
|
|