mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
restoring code
This commit is contained in:
parent
fccfce2ae8
commit
8d1fa362f7
|
@ -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…
Reference in a new issue