1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

Pas de distinction graphique pour le mode séléction active et la

checkbox est caché
This commit is contained in:
Vincent LAURENT 2021-11-09 01:09:21 +01:00
parent a496f122dc
commit 2186a62a57
2 changed files with 4 additions and 4 deletions

View File

@ -231,13 +231,13 @@ loadingTask.promise.then(function(pdf) {
checkbox.disabled = false; checkbox.disabled = false;
} }
document.querySelectorAll('.btn-svg').forEach(function(item) { /*document.querySelectorAll('.btn-svg').forEach(function(item) {
item.style.borderWidth = "1px"; item.style.borderWidth = "1px";
}); });*/
if(addLock && input_selected) { if(addLock && input_selected) {
var svgButton = document.querySelector('.btn-svg[for="'+input_selected.id+'"]'); var svgButton = document.querySelector('.btn-svg[for="'+input_selected.id+'"]');
svgButton.style.borderWidth = "2px"; //svgButton.style.borderWidth = "2px";
checkbox.checked = true; checkbox.checked = true;
return; return;
} }

View File

@ -39,7 +39,7 @@
<button type="button" class="btn-close text-reset d-md-none" data-bs-dismiss="offcanvas" aria-label="Close"></button> <button type="button" class="btn-close text-reset d-md-none" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div> </div>
<div class="offcanvas-body"> <div class="offcanvas-body">
<div class="form-check form-switch mb-2 small"> <div class="form-check form-switch mb-2 small d-none">
<input class="form-check-input" type="checkbox" id="add-lock-checkbox" disabled="disabled"> <input class="form-check-input" type="checkbox" id="add-lock-checkbox" disabled="disabled">
<label style="cursor: pointer;" class="form-check-label" for="add-lock-checkbox"> Garder la séléction active</label> <label style="cursor: pointer;" class="form-check-label" for="add-lock-checkbox"> Garder la séléction active</label>
</div> </div>