diff --git a/rpg-docs/client/globalHelpers/GlobalUI.js b/rpg-docs/client/globalHelpers/GlobalUI.js index aa4dc2b2..ad50010a 100644 --- a/rpg-docs/client/globalHelpers/GlobalUI.js +++ b/rpg-docs/client/globalHelpers/GlobalUI.js @@ -77,10 +77,10 @@ this.GlobalUI = (function() { var throttleBack = _.throttle(function() { history.back(); - }, 800, {trailing: false}); + }, 100, {trailing: false}); GlobalUI.closeDetail = function() { - if (!!(window.history && window.history.pushState)) { + if (window.history && history.pushState && history.state.detail === "opened") { throttleBack(); } else { Session.set("global.ui.detailShow", false);