Skip to content

Commit

Permalink
Add signed modal
Browse files Browse the repository at this point in the history
  • Loading branch information
tale-fau committed Jul 30, 2024
1 parent 829103f commit b4e883f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ function($f3) {
array_map('unlink', explode(' ', trim($svgFiles)));
}

$f3->reroute($f3->get('REVERSE_PROXY_URL').'/signature/'.$f3->get('PARAMS.hash')."#signed");
\Flash::instance()->setKey('openModal', 'signed');

$f3->reroute($f3->get('REVERSE_PROXY_URL').'/signature/'.$f3->get('PARAMS.hash'));
}
);

Expand Down
2 changes: 1 addition & 1 deletion public/js/signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ var modalSharing = function() {
})
}

if(window.location.hash == '#signed') {
if(openModal == 'signed') {
let modalSignedEl = document.getElementById('modal-signed');
let modalSigned = bootstrap.Modal.getOrCreateInstance(modalSignedEl);
modalSigned.show();
Expand Down

0 comments on commit b4e883f

Please sign in to comment.