mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
Don't remove hash on modal close
This commit is contained in:
parent
b713db3b92
commit
737e70f738
1 changed files with 0 additions and 10 deletions
|
|
@ -1033,22 +1033,12 @@ var modalSharing = function() {
|
|||
let modalInformationsEl = document.getElementById('modal-share-informations');
|
||||
let modalInformations = bootstrap.Modal.getOrCreateInstance(modalInformationsEl);
|
||||
modalInformations.show();
|
||||
modalInformationsEl.addEventListener('hidden.bs.modal', function (event) {
|
||||
if(window.location.hash) {
|
||||
history.pushState({}, '', window.location.href.replace(/#.*$/, ''));
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if(openModal == 'signed') {
|
||||
let modalSignedEl = document.getElementById('modal-signed');
|
||||
let modalSigned = bootstrap.Modal.getOrCreateInstance(modalSignedEl);
|
||||
modalSigned.show();
|
||||
modalSignedEl.addEventListener('hidden.bs.modal', function (event) {
|
||||
if(window.location.hash) {
|
||||
history.pushState({}, '', window.location.href.replace(/#.*$/, ''));
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue