mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
first thought
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Waiting to run
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Waiting to run
This commit is contained in:
parent
3a2611f8e1
commit
fccfce2ae8
|
@ -134,11 +134,13 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#submit-button').on("click", function (event) {
|
$('#submit-button').on("click", function (event) {
|
||||||
if (signaturePad.isEmpty()) {
|
if(signaturePad != null) {
|
||||||
alert("Please provide signature first.");
|
if (signaturePad.isEmpty()) {
|
||||||
return false;
|
alert("Please provide signature first.");
|
||||||
} else {
|
return false;
|
||||||
$('#signature_output').val(signaturePad.toDataURL());
|
} else {
|
||||||
|
$('#signature_output').val(signaturePad.toDataURL());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue