Skip to content

Commit

Permalink
Script outside btn-group div
Browse files Browse the repository at this point in the history
  • Loading branch information
wincelau committed Nov 1, 2024
1 parent 4a87c77 commit e82207d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/signature.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@
<span class="input-group-text"><?php echo _("Sharing link"); ?></span>
<input id="input-share-link" type="text" onclick="this.select(); this.setSelectionRange(0, 99999);" readonly="readonly" class="form-control bg-light font-monospace" value="">
<button onclick="navigator.clipboard.writeText(document.getElementById('input-share-link').value); this.innerText = '<?php echo _('Copied !'); ?>';" autofocus="autofocus" class="btn btn-primary" type="button" id="btn-copy-share-link"><i class="bi bi-clipboard"></i> <?php echo _('Copy'); ?></button>
<script>document.querySelector('#input-share-link').value = document.location.href;</script>
</div>
<script>document.querySelector('#input-share-link').value = document.location.href;</script>
<p class="mb-0"><?php echo _("Each of the signatories can download the latest version of the signed PDF at any time."); ?></p>
</div>
<div class="modal-footer text-start">
Expand Down

0 comments on commit e82207d

Please sign in to comment.