View | Details | Raw Unified | Return to bug 29737
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-1 / +1 lines)
Lines 201-207 Link Here
201
            <td>
201
            <td>
202
                [% IF Koha.Preference('SuspendHoldsIntranet') %]
202
                [% IF Koha.Preference('SuspendHoldsIntranet') %]
203
                    [% UNLESS ( hold.found ) %]
203
                    [% UNLESS ( hold.found ) %]
204
                        <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-date="[% hold.date | html %]">
204
                        <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]">
205
                            [% IF ( hold.suspend ) %]
205
                            [% IF ( hold.suspend ) %]
206
                                <i class="fa fa-play" aria-hidden="true"></i> Unsuspend
206
                                <i class="fa fa-play" aria-hidden="true"></i> Unsuspend
207
                            [% ELSE %]
207
                            [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-4 / +1 lines)
Lines 431-441 $(document).ready(function() { Link Here
431
    $(".toggle-suspend").on('click', function(e) {
431
    $(".toggle-suspend").on('click', function(e) {
432
        e.preventDefault();
432
        e.preventDefault();
433
        let reserve_id     = $(this).data('reserve-id');
433
        let reserve_id     = $(this).data('reserve-id');
434
        let borrowernumber = $(this).data('borrowernumber');
435
        let biblionumber   = $(this).data('biblionumber');
434
        let biblionumber   = $(this).data('biblionumber');
436
        let date           = $(this).data('date');
437
        let suspend_until  = $('#suspend_until_' + reserve_id).val();
435
        let suspend_until  = $('#suspend_until_' + reserve_id).val();
438
        window.location.href='request.pl?action=toggleSuspend&amp;reserve_id=' + reserve_id + '&amp;borrowernumber=' + borrowernumber + '&amp;biblionumber=' + biblionumber + '&amp;date=' + date + '&amp;suspend_until=' + suspend_until;
436
        window.location.href='request.pl?action=toggleSuspend&amp;reserve_id=' + reserve_id + '&amp;biblionumber=' + biblionumber + '&amp;suspend_until=' + suspend_until;
439
        return false;
437
        return false;
440
    });
438
    });
441
});
439
});
442
- 

Return to bug 29737