mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #10633 from mnafees/21299
CR for Job #21299 - Save category on Marketplace when using back button
This commit is contained in:
commit
9fa74029c7
1 changed files with 2 additions and 9 deletions
|
@ -25,9 +25,7 @@
|
|||
var canWriteAssets = false;
|
||||
var xmlHttpRequest = null;
|
||||
var isPreparing = false; // Explicitly track download request status.
|
||||
|
||||
var lastPage = "https://metaverse.highfidelity.com/marketplace?";
|
||||
|
||||
|
||||
function injectCommonCode(isDirectoryPage) {
|
||||
|
||||
// Supporting styles from marketplaces.css.
|
||||
|
@ -67,7 +65,7 @@
|
|||
|
||||
// Footer actions.
|
||||
$("#back-button").on("click", function () {
|
||||
window.location = lastPage;
|
||||
window.history.back();
|
||||
});
|
||||
$("#all-markets").on("click", function () {
|
||||
EventBridge.emitWebEvent(GOTO_DIRECTORY);
|
||||
|
@ -344,12 +342,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
function locationChanged() {
|
||||
lastPage = location.href;
|
||||
}
|
||||
|
||||
// Load / unload.
|
||||
window.addEventListener("load", onLoad); // More robust to Web site issues than using $(document).ready().
|
||||
window.addEventListener("hashchange", locationChanged);
|
||||
|
||||
}());
|
||||
|
|
Loading…
Reference in a new issue