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