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 |
- |
|
|