Merge pull request #10633 from mnafees/21299

CR for Job #21299 - Save category on Marketplace when using back button
This commit is contained in:
Seth Alves 2017-06-08 16:10:56 -07:00 committed by GitHub
commit 9fa74029c7

View file

@ -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);
}());