mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Share link visually disabled when pdf edition is begin
This commit is contained in:
parent
5faf1f2a65
commit
a3d72959f7
@ -488,7 +488,12 @@ var createAndAddSvgInCanvas = function(canvas, item, x, y, height = null) {
|
||||
document.getElementById('save_mobile').removeAttribute('disabled');
|
||||
}
|
||||
if(document.getElementById('btn_download')) {
|
||||
document.getElementById('btn_download').classList.add('disabled');
|
||||
document.getElementById('btn_download').classList.remove('btn-outline-dark');
|
||||
document.getElementById('btn_download').classList.add('btn-outline-secondary');
|
||||
}
|
||||
if(document.getElementById('btn_share')) {
|
||||
document.getElementById('btn_share').classList.remove('btn-outline-dark');
|
||||
document.getElementById('btn_share').classList.add('btn-outline-secondary');
|
||||
}
|
||||
|
||||
|
||||
|
@ -93,7 +93,7 @@
|
||||
<?php else: ?>
|
||||
<div class="btn-group w-100">
|
||||
<a id="btn_download" class="btn btn-outline-dark w-100" href="/signature/<?php echo $hash ?>/pdf"><i class="bi bi-download"></i> Télécharger le PDF</a>
|
||||
<button class="btn btn-outline-dark" type="button" id="save_share" data-bs-toggle="modal" data-bs-target="#modal-share-informations"><i class="bi bi-share"></i></button>
|
||||
<button class="btn btn-outline-dark" type="button" id="btn_share" data-bs-toggle="modal" data-bs-target="#modal-share-informations"><i class="bi bi-share"></i></button>
|
||||
</div>
|
||||
<form id="form_pdf" action="/signature/<?php echo $hash ?>/save" method="post" enctype="multipart/form-data">
|
||||
<input id="input_svg" name="svg[]" type="file" class="d-none" />
|
||||
|
Loading…
Reference in New Issue
Block a user