Renamed JavaScript variables isValidated to isValid in the forms.
This commit is contained in:
parent
dec53c09f3
commit
62b59e7380
@ -96,10 +96,10 @@ function updateParent(code) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
function validateForm() {
|
function validateForm() {
|
||||||
let isValidated = true;
|
let isValid = true;
|
||||||
isValidated = isValidated && validateCode();
|
isValid = isValid && validateCode();
|
||||||
isValidated = isValidated && validateTitle();
|
isValid = isValid && validateTitle();
|
||||||
return isValidated;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -337,28 +337,28 @@ function resetRecordButtons() {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
function validateForm() {
|
function validateForm() {
|
||||||
let isValidated = true;
|
let isValid = true;
|
||||||
isValidated = isValidated && validateDate();
|
isValid = isValid && validateDate();
|
||||||
$(".debit-record").each(function () {
|
$(".debit-record").each(function () {
|
||||||
isValidated = isValidated && validateRecord(this);
|
isValid = isValid && validateRecord(this);
|
||||||
});
|
});
|
||||||
$(".credit-account").each(function () {
|
$(".credit-account").each(function () {
|
||||||
isValidated = isValidated && validateRecord(this);
|
isValid = isValid && validateRecord(this);
|
||||||
});
|
});
|
||||||
$(".record-account").each(function () {
|
$(".record-account").each(function () {
|
||||||
isValidated = isValidated && validateAccount(this);
|
isValid = isValid && validateAccount(this);
|
||||||
});
|
});
|
||||||
$(".record-summary").each(function () {
|
$(".record-summary").each(function () {
|
||||||
isValidated = isValidated && validateSummary(this);
|
isValid = isValid && validateSummary(this);
|
||||||
});
|
});
|
||||||
$(".record-amount").each(function () {
|
$(".record-amount").each(function () {
|
||||||
isValidated = isValidated && validateAmount(this);
|
isValid = isValid && validateAmount(this);
|
||||||
});
|
});
|
||||||
if (isTransfer()) {
|
if (isTransfer()) {
|
||||||
isValidated = isValidated && validateBalance();
|
isValid = isValid && validateBalance();
|
||||||
}
|
}
|
||||||
isValidated = isValidated && validateNote();
|
isValid = isValid && validateNote();
|
||||||
return isValidated;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user