Show the home page when you hit the back button to go back to it.

This commit is contained in:
Shane M. Clements 2015-05-08 16:24:12 -06:00
parent 498c1ce227
commit 28ee71b70a

View file

@ -292,6 +292,10 @@ $("[data-action='static-link']").click(function(e) {
showPage(path);
});
$(window).bind('hashchange', function(e) {
if (document.location.hash == '') showPage('home');
});
function showPage(path) {
/*
* Show a part of the page. The site is set up like