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 1365-1381 Link Here
1365
        }
1365
        }
1366
1366
1367
        function checkMultiHold() {
1367
        function checkMultiHold() {
1368
            var spans = $(".multi_hold_item_checkbox:checked");
1369
            if ($(spans).size() == 0) {
1370
                alert(MSG_NO_ITEMS_AVAILABLE);
1371
                return false;
1372
            }
1373
1368
1374
            var biblionumbers = "";
1369
            var biblionumbers = "";
1375
            $(spans).each(function() {
1370
            var selected_bibs = $(".multi_hold_item_checkbox:checked");
1376
                var bibnum = $(this).attr("title");
1371
            if ( selected_bibs.length > 0 ) {
1377
                biblionumbers += bibnum + "/";
1372
                // there are biblios selected in the form!
1378
            });
1373
                // verify they have a pickup location selected
1374
1375
                var pickup_not_set = 0;
1376
                selected_bibs.each(function() {
1377
                    if ( $(this).closest('tr').find(".multi_pickup_select").val() === "" ) {
1378
                        pickup_not_set++;
1379
                    }
1380
                    else {
1381
                        var bibnum = $(this).attr("title");
1382
                        biblionumbers += bibnum + "/";
1383
                    }
1384
                });
1385
                if ( pickup_not_set > 0 ) {
1386
                    alert( _("Please make sure all selected titles have a pickup location set" + "\n") );
1387
                    return false;
1388
                }
1389
            }
1390
            else {
1391
                alert( _("Please select at least one title" + "\n") );
1392
                return false;
1393
            }
1379
1394
1380
            var badSpans = $(".not_holdable");
1395
            var badSpans = $(".not_holdable");
1381
            var badBibs = "";
1396
            var badBibs = "";
1382
- 

Return to bug 28273