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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-6 lines)
Lines 18-29 Link Here
18
[% Asset.js("js/acq.js") | $raw %]
18
[% Asset.js("js/acq.js") | $raw %]
19
[% Asset.js("js/funds_sorts.js") | $raw %]
19
[% Asset.js("js/funds_sorts.js") | $raw %]
20
[% Asset.js("js/addorderiso2709.js") | $raw %]
20
[% Asset.js("js/addorderiso2709.js") | $raw %]
21
<script>
22
    var ERR_NO_RECORD_SELECTED = _("There is no record selected");
23
    var ERR_INVALID_QUANTITY = _("quantity values are not filled in or are not numbers");
24
    var ERR_FUNDS_MISSING = _("Some budgets are not defined in item records");
25
    var MSG_LOADING = _("Loading");
26
</script>
27
</head>
21
</head>
28
22
29
<body id="acq_addorderiso2709" class="acq">
23
<body id="acq_addorderiso2709" class="acq">
(-)a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js (-6 / +5 lines)
Lines 1-4 Link Here
1
/* global dataTablesDefaults ERR_NO_RECORD_SELECTED ERR_INVALID_QUANTITY ERR_FUNDS_MISSING MSG_LOADING */
1
/* global dataTablesDefaults __ */
2
2
3
$(document).ready(function() {
3
$(document).ready(function() {
4
    $("#Aform").preventDoubleFormSubmit();
4
    $("#Aform").preventDoubleFormSubmit();
Lines 50-56 $(document).ready(function() { Link Here
50
        e.preventDefault();
50
        e.preventDefault();
51
51
52
        if ( $("input:checkbox[name='import_record_id']:checked").length < 1 ) {
52
        if ( $("input:checkbox[name='import_record_id']:checked").length < 1 ) {
53
            alert( ERR_NO_RECORD_SELECTED );
53
            alert( __("There is no record selected") );
54
            return false;
54
            return false;
55
        }
55
        }
56
56
Lines 61-74 $(document).ready(function() { Link Here
61
            }
61
            }
62
        });
62
        });
63
        if ( error > 0 ) {
63
        if ( error > 0 ) {
64
            alert( error + " " + ERR_INVALID_QUANTITY );
64
            alert(error + " " + __("quantity values are not filled in or are not numbers") );
65
            return false;
65
            return false;
66
66
67
        }
67
        }
68
68
69
        error = checkOrderBudgets();
69
        error = checkOrderBudgets();
70
        if ( error > 0 ) {
70
        if ( error > 0 ) {
71
            alert( ERR_FUNDS_MISSING );
71
            alert( __("Some budgets are not defined in item records") );
72
            return false;
72
            return false;
73
        }
73
        }
74
74
Lines 88-94 $(document).ready(function() { Link Here
88
    });
88
    });
89
    $("#dataPreview").on("hidden.bs.modal", function(){
89
    $("#dataPreview").on("hidden.bs.modal", function(){
90
        $("#dataPreviewLabel").html("");
90
        $("#dataPreviewLabel").html("");
91
        $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> " + MSG_LOADING + "</div>");
91
        $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> " + __("Loading") + "</div>");
92
    });
92
    });
93
});
93
});
94
94
95
- 

Return to bug 26339