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-12">
|
||||||
<div class="col-md-offset-4">
|
<div class="col-md-offset-4">
|
||||||
<div class="box-header">
|
<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>
|
<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">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -613,4 +613,23 @@ function Save()
|
|||||||
$('#IGR').submit();
|
$('#IGR').submit();
|
||||||
}//validate if closed
|
}//validate if closed
|
||||||
}//save function 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>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user