mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Bouton pour réinitialiser la trace de la signature
This commit is contained in:
parent
f318504d5e
commit
a7076e962a
@ -391,6 +391,11 @@ loadingTask.promise.then(function(pdf) {
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById('signature-pad-reset').addEventListener('click', function(event) {
|
||||
signaturePad.clear();
|
||||
event.preventDefault();
|
||||
})
|
||||
|
||||
document.querySelectorAll('#modalAddSvg .nav-link').forEach(function(item) { item.addEventListener('shown.bs.tab', function (event) {
|
||||
var firstInput = document.querySelector(event.target.dataset.bsTarget).querySelector('input');
|
||||
if(firstInput) {
|
||||
|
@ -113,6 +113,7 @@
|
||||
</nav>
|
||||
<div class="tab-content mt-3" id="nav-svg-add">
|
||||
<div class="tab-pane fade show active" id="nav-draw" role="tabpanel" aria-labelledby="nav-draw-tab">
|
||||
<small id="signature-pad-reset" class="text-muted opacity-75 position-absolute" style="right: 25px; bottom: 25px; cursor: pointer;" title="Effacer la signature"><i class="bi bi-trash"></i></small>
|
||||
<canvas id="signature-pad" class="border bg-light" width="462" height="200"></canvas>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="nav-type" role="tabpanel" aria-labelledby="nav-type-tab">
|
||||
|
Loading…
Reference in New Issue
Block a user