restoring code
This commit is contained in:
parent
fccfce2ae8
commit
8d1fa362f7
1 changed files with 5 additions and 9 deletions
|
@ -134,15 +134,11 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#submit-button').on("click", function (event) {
|
$('#submit-button').on("click", function (event) {
|
||||||
if(signaturePad != null) {
|
if (signaturePad.isEmpty()) {
|
||||||
if (signaturePad.isEmpty()) {
|
alert("Please provide signature first.");
|
||||||
alert("Please provide signature first.");
|
return false;
|
||||||
return false;
|
} else {
|
||||||
} else {
|
$('#signature_output').val(signaturePad.toDataURL());
|
||||||
$('#signature_output').val(signaturePad.toDataURL());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue