Team 4 (Smile Box) Submission Limit
Specific Folder FTP Upload / ftp-deploy (push) Successful in 2m52s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 2m52s
Details
This commit is contained in:
parent
d2936cfa90
commit
5e8c2a452b
|
|
@ -540,7 +540,10 @@ $(document).on('change', 'select[id^="field-contact_id"]', function () {
|
||||||
|
|
||||||
$('#report-form').on('submit', function(event) {
|
$('#report-form').on('submit', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (numberOfSubmission != 9) {
|
|
||||||
|
let isEditMode = $('input[name="id[0]"]').length > 0 && $('input[name="id[0]"]').val() !== '';
|
||||||
|
|
||||||
|
if (!isEditMode && numberOfSubmission != 9) {
|
||||||
alert(`You must submit 10 Doctors , Current Doctors : ${numberOfSubmission+1}`);
|
alert(`You must submit 10 Doctors , Current Doctors : ${numberOfSubmission+1}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue