Browse Source

fix window history navigation (and in particular bring back forward button, pardon the pun)

readme-update
Simon Grim 9 years ago
parent
commit
3da830567d
  1. 2
      js/interface_common.js

2
js/interface_common.js

@ -557,7 +557,7 @@ function watchHashChange(e) { @@ -557,7 +557,7 @@ function watchHashChange(e) {
if (notFirstModalView && notNavigatedBackToFirstModalView) {
$('.modal-back').css('display', 'inline');
} else {
window.history.pushState({showCloseButton: false}, null, null);
window.history.replaceState({showCloseButton: false}, '', window.location.pathname + window.location.hash);
$('.modal-back').css('display', 'none');
}
}

Loading…
Cancel
Save