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" onclick="window.location.href='request.pl?action=toggleSuspend&amp;reserve_id=[% hold.reserve_id | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;date=[% hold.date | html %]&amp;suspend_until=' + $('#suspend_until_[% hold.reserve_id | html %]').val()">
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 %]">
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 (-1 / +11 lines)
Lines 427-430 $(document).ready(function() { Link Here
427
            $('#suspend-modal').modal('hide');
427
            $('#suspend-modal').modal('hide');
428
        });
428
        });
429
    });
429
    });
430
431
    $(".toggle-suspend").on('click', function(e) {
432
        e.preventDefault();
433
        let reserve_id     = $(this).data('reserve-id');
434
        let borrowernumber = $(this).data('borrowernumber');
435
        let biblionumber   = $(this).data('biblionumber');
436
        let date           = $(this).data('date');
437
        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;
439
        return false;
440
    });
430
});
441
});
431
- 

Return to bug 29737