Titans: form changes removed validation msg and user can eneter 0 or more value in brands Rx
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m38s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m38s
Details
This commit is contained in:
parent
f14535d31d
commit
b2ec73222b
|
|
@ -430,19 +430,19 @@
|
||||||
let hasValue = false;
|
let hasValue = false;
|
||||||
|
|
||||||
brandFields.forEach(function(field) {
|
brandFields.forEach(function(field) {
|
||||||
if ((parseInt($(field).val()) || 0) > 0) {
|
if ((parseInt($(field).val()) || 0) >= 0) {
|
||||||
hasValue = true;
|
hasValue = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!hasValue) {
|
/* if (!hasValue) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
title: 'Validation Error',
|
title: 'Validation Error',
|
||||||
text: 'From all brands, at least one field should be greater than 0.'
|
text: 'From all brands, at least one field should be greater than 0.'
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
} */
|
||||||
const formData = new FormData($('#report-form')[0]);
|
const formData = new FormData($('#report-form')[0]);
|
||||||
// Log form data to console
|
// Log form data to console
|
||||||
for (let [key, value] of formData.entries()) {
|
for (let [key, value] of formData.entries()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue