mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-11 23:28:41 +00:00
Fix bug where history is not updated due to js interference
This commit is contained in:
parent
46cbc1d39e
commit
d3312d760f
|
|
@ -59,6 +59,7 @@ export class GeneralUI {
|
||||||
for (let i = 0; i < length; ++i) {
|
for (let i = 0; i < length; ++i) {
|
||||||
e[i].addEventListener('click', function(event) {
|
e[i].addEventListener('click', function(event) {
|
||||||
jsOMS.preventAll(event);
|
jsOMS.preventAll(event);
|
||||||
|
history.pushState(null, null, window.location);
|
||||||
window.location = UriFactory.build(this.getAttribute('data-href'));
|
window.location = UriFactory.build(this.getAttribute('data-href'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user