import validations
This commit is contained in:
parent
c7c9e2aa73
commit
b48ec59a01
@ -144,10 +144,19 @@ function vaildateBeforeOpenModal()
|
|||||||
}
|
}
|
||||||
else if($('#Dispatch').val() == '' && $('#Scheduleby').val() == '')
|
else if($('#Dispatch').val() == '' && $('#Scheduleby').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Dispatch Instruction');
|
if(document.getElementById("Schedule").checked)
|
||||||
$('#Dispatch').focus();
|
{
|
||||||
|
alert('Please Enter Schedule By');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if(document.getElementById("Date").checked)
|
||||||
|
{
|
||||||
|
alert('Please Enter Dispatch Instruction');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
else if($('#currencytype').val() == '0')
|
else if($('#currencytype').val() == '0')
|
||||||
{
|
{
|
||||||
alert('Please Select the Currency Type');
|
alert('Please Select the Currency Type');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user