Skip to content

Commit

Permalink
Fix Portal Default Signer (openemr#7839)
Browse files Browse the repository at this point in the history
fix anchor syntax
fix audience name in dialog
  • Loading branch information
sjpadgett authored Nov 22, 2024
1 parent 0eeae03 commit 79586c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions portal/sign/assets/signer_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,12 @@ function archiveSignature(signImage = '', edata = '') {
'Connection': 'close'
}
}).then(response => response.json()).then(function (response) {
$("#openSignModal").modal("hide");
const backdrop = document.querySelector('.modal-backdrop');
$("#openSignModal").modal('hide');
if (backdrop) {
backdrop.remove();
}
).catch(error => signerAlertMsg(error));
}).catch(error => signerAlertMsg(error));

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion portal/sign/assets/signer_modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'is_portal' => $is_portal
,'cuser' => $cuser
,'cpid' => $cpid
,'aud' => $is_portal ? $aud = 'patient_signature' : $aud
,'aud' => $is_portal ? $aud = 'patient-signature' : $aud
];
$twigContainer = (new TwigContainer(null, $GLOBALS['kernel']))->getTwig();
try {
Expand Down
5 changes: 4 additions & 1 deletion templates/portal/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,10 @@
<!-- Signature -->
<div class="card d-flex mr-1 mb-1">
<div class="card-body row">
<h4 class="card-title d-flex align-items-center btn-link"><a role="button" href="#openSignModal" data-toggle="modal" data-parent="#cardgroup"><i class="fas fa-file-signature mr-1"></i>{{ 'Default Digital Signature' | xlt }}</a></h4>
<h4 class="card-title d-flex align-items-center btn-link">
<a role="button" href="#openSignModal" data-toggle="modal" data-backdrop="true" data-target="#openSignModal" data-type="patient-signature" data-parent="#cardgroup">
<i class="fas fa-file-signature mr-1"></i>{{ 'Default Digital Signature' | xlt }}</a>
</h4>
</div>
</div>
<!-- Password -->
Expand Down

0 comments on commit 79586c7

Please sign in to comment.