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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-10 / +24 lines)
Lines 1403-1419 Link Here
1403
        }
1403
        }
1404
1404
1405
        function checkMultiHold() {
1405
        function checkMultiHold() {
1406
            var spans = $(".multi_hold_item_checkbox:checked");
1407
            if ($(spans).size() == 0) {
1408
                alert(MSG_NO_ITEMS_AVAILABLE);
1409
                return false;
1410
            }
1411
1406
1412
            var biblionumbers = "";
1407
            var biblionumbers = "";
1413
            $(spans).each(function() {
1408
            var selected_bibs = $(".multi_hold_item_checkbox:checked");
1414
                var bibnum = $(this).attr("title");
1409
            if ( selected_bibs.length > 0 ) {
1415
                biblionumbers += bibnum + "/";
1410
                // there are biblios selected in the form!
1416
            });
1411
                // verify they have a pickup location selected
1412
1413
                var pickup_not_set = 0;
1414
                selected_bibs.each(function() {
1415
                    if ( $(this).closest('tr').find(".multi_pickup_select").val() === "" ) {
1416
                        pickup_not_set++;
1417
                    }
1418
                    else {
1419
                        var bibnum = $(this).attr("title");
1420
                        biblionumbers += bibnum + "/";
1421
                    }
1422
                });
1423
                if ( pickup_not_set > 0 ) {
1424
                    alert( _("Please make sure all selected titles have a pickup location set" + "\n") );
1425
                    return false;
1426
                }
1427
            }
1428
            else {
1429
                alert( _("Please select at least one title" + "\n") );
1430
                return false;
1431
            }
1417
1432
1418
            var badSpans = $(".not_holdable");
1433
            var badSpans = $(".not_holdable");
1419
            var badBibs = "";
1434
            var badBibs = "";
1420
- 

Return to bug 28273