Skip to content

Commit

Permalink
Don't remove hash on modal close
Browse files Browse the repository at this point in the history
  • Loading branch information
wincelau committed Jul 30, 2024
1 parent b713db3 commit 737e70f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions public/js/signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(/#.*$/, ''));
}
})
}
}

Expand Down

0 comments on commit 737e70f

Please sign in to comment.