From dfd8f9e6a33d622a1ecb0743beb9149d32aba64d Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 24 Aug 2020 12:15:45 +0530 Subject: [PATCH] Check to prevent empty project application --- index.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 31f7eb5..0967cfe 100644 --- a/index.html +++ b/index.html @@ -9768,7 +9768,7 @@ ev.preventDefault() let mainObj = validateForm() - + if (mainObj != 0) { document.getElementById('applytabmain').style.display = 'none' @@ -9822,7 +9822,7 @@ }, 2500) } }) - } + } }) @@ -9841,6 +9841,7 @@ if (!myFloID_isApplicant) { + // name validation aname = aname.replace(/\s+/g, ' ') aname = aname.trim() @@ -9891,6 +9892,12 @@ return 0 } awhatsapp = floCrypto.encryptData(awhatsapp, encryption_pubkey) + + if (aproject == ''){ + alert("You haven't selected any project") + return 0 + } + }