Lines 1491-1501
Link Here
|
1491 |
$("#cancelModalConfirmBtn").on("click",function(e) { |
1491 |
$("#cancelModalConfirmBtn").on("click",function(e) { |
1492 |
let link; |
1492 |
let link; |
1493 |
if(cancel_link.data('bulk')) { |
1493 |
if(cancel_link.data('bulk')) { |
1494 |
[% IF biblionumbers %] |
1494 |
[% SET data_url = 'biblionumber=' _ biblionumbers.join('&biblionumber=') %] |
1495 |
link = `request.pl?biblionumbers=[% biblionumbers | url %]&action=cancelBulk&ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`; |
1495 |
link = `request.pl?[% data_url %]&action=cancelBulk&ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`; |
1496 |
[% ELSE %] |
|
|
1497 |
link = `request.pl?biblionumber=[% biblionumber | url %]&action=cancelBulk&ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`; |
1498 |
[% END %] |
1499 |
} else { |
1496 |
} else { |
1500 |
let borrowernumber = cancel_link.data('borrowernumber'); |
1497 |
let borrowernumber = cancel_link.data('borrowernumber'); |
1501 |
let biblionumber = cancel_link.data('biblionumber'); |
1498 |
let biblionumber = cancel_link.data('biblionumber'); |
1502 |
- |
|
|