file upload notification
This commit is contained in:
parent
795175949e
commit
d70286a516
@ -142,7 +142,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-offset-4">
|
||||
<div class="box-header">
|
||||
<input type="file" accept=".png,.jpg,.pdf" onchange="readURL(this);" id="myfile" name="myfile" />
|
||||
<input type="file" accept=".png,.jpg,.pdf" onchange="filealert();" id="myfile" name="myfile" />
|
||||
|
||||
|
||||
<label for="photo">Select File to upload<br/></label>
|
||||
@ -201,7 +201,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
||||
<div class="col-md-1 col-md-offset-10">
|
||||
|
||||
|
||||
<a class="btn btn-primary" id='IGRLink' name='IGRLink' onclick="Save();">Generate IGR</a>
|
||||
<a class="btn btn-primary" id='IGRLink' name='IGRLink' onclick="filecheck();">Generate IGR</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -613,4 +613,23 @@ function Save()
|
||||
$('#IGR').submit();
|
||||
}//validate if closed
|
||||
}//save function closed
|
||||
function filecheck()
|
||||
{
|
||||
var myfile = $('#myfile').val();
|
||||
if(myfile=='')
|
||||
{
|
||||
alert('File not Found');
|
||||
Save();
|
||||
}
|
||||
|
||||
}
|
||||
function filealert()
|
||||
{
|
||||
var myfile = $('#myfile').val();
|
||||
if(myfile!='')
|
||||
{
|
||||
alert('Your file added successfully');
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user