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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc (-1 / +1 lines)
Lines 155-161 Link Here
155
                                    <th>Expiration</th>
155
                                    <th>Expiration</th>
156
                                    <th>Priority</th>
156
                                    <th>Priority</th>
157
                                    <th>Notes</th>
157
                                    <th>Notes</th>
158
                                    <th>Delete?</th>
158
                                    <th>Cancel? <p class="column-tool"><a href="#" id="CheckAllHolds">select all</a> | <a href="#" id="UncheckAllHolds">none</a></p></th>
159
                                    <th>Suspend?</th>
159
                                    <th>Suspend?</th>
160
                                    <th>Status</th>
160
                                    <th>Status</th>
161
                                </tr>
161
                                </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-5 / +11 lines)
Lines 241-250 $(document).ready(function() { Link Here
241
                    {
241
                    {
242
                        "orderable": false,
242
                        "orderable": false,
243
                        "data": function( oObj ) {
243
                        "data": function( oObj ) {
244
                            return "<select name='rank-request'>"
244
                            return "<input type='checkbox' class='cancel_hold' name='rank-request' value='del' " + (oObj.rankRequest === 'del' ? 'checked' : '') + ">"
245
                                 +"<option value='n'>" + __("No") + "</option>"
246
                                 +"<option value='del'>" + __("Yes") + "</option>"
247
                                 + "</select>"
248
                                 + "<input type='hidden' name='biblionumber' value='" + oObj.biblionumber + "'>"
245
                                 + "<input type='hidden' name='biblionumber' value='" + oObj.biblionumber + "'>"
249
                                 + "<input type='hidden' name='borrowernumber' value='" + borrowernumber + "'>"
246
                                 + "<input type='hidden' name='borrowernumber' value='" + borrowernumber + "'>"
250
                                 + "<input type='hidden' name='reserve_id' value='" + oObj.reserve_id + "'>";
247
                                 + "<input type='hidden' name='reserve_id' value='" + oObj.reserve_id + "'>";
Lines 478-481 $(document).ready(function() { Link Here
478
        $("#hold-actions-form").submit();
475
        $("#hold-actions-form").submit();
479
        return false;
476
        return false;
480
    });
477
    });
478
479
    $("#CheckAllHolds").on("click",function(){
480
        $(".cancel_hold:visible").prop("checked", true);
481
        return false;
482
    });
483
    $("#UncheckAllHolds").on("click",function(){
484
        $(".cancel_hold:visible").prop("checked", false);
485
        return false;
486
    });
487
481
});
488
});
482
- 

Return to bug 7782