success: function (data) {
showMessages(data.messages);
if (data.result === false) {
hideProcessing();
$('#createRecordBtn').prop('disabled', true);
check = false;
return;
}
hideProcessing();
onComplete();
}
var completedCount = 0;
rows.forEach(function (row) {
createSnvCard(row, batchId, snvDateTime, function () {
completedCount++;
if (completedCount === rows.length) {
showSuccessMessage(
"Справки о НВ успешно зарегистрированы."
);
}
});
});