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

(-)a/koha-tmpl/intranet-tmpl/prog/js/additem.js (-1 / +17 lines)
Lines 59-65 function addItem(node, unique_item_fields) { Link Here
59
}
59
}
60
60
61
function addMulti(count, node, unique_item_fields) {
61
function addMulti(count, node, unique_item_fields) {
62
    var item_form = $(node).closest("div");
62
    var index = $(node).closest("div").attr("id");
63
    var index = $(node).closest("div").attr("id");
64
65
    //We need to verify the item form before saving
66
    var empty_item_mandatory = CheckMandatorySubfields(item_form);
67
    if (empty_item_mandatory > 0) {
68
        var _alertString =
69
            __("Form not submitted because of the following problem(s)") + "\n";
70
71
        _alertString +=
72
            "-------------------------------------------------------------------\n\n";
73
        _alertString +=
74
            "\n- " +
75
            __("%s item mandatory fields empty").format(empty_item_mandatory);
76
        alert(_alertString);
77
        return false;
78
    }
79
63
    var countItemsBefore = $("#items_list tbody tr").length;
80
    var countItemsBefore = $("#items_list tbody tr").length;
64
    var current_qty = parseInt($("#quantity").val(), 10);
81
    var current_qty = parseInt($("#quantity").val(), 10);
65
    $("#procModal").modal("show");
82
    $("#procModal").modal("show");
66
- 

Return to bug 38411