LSP: back button support

This commit is contained in:
cat 2014-01-02 12:35:13 +01:00
parent 723c8b8b3b
commit 0e440231a3
2 changed files with 21 additions and 0 deletions

View file

@ -1077,3 +1077,17 @@ $(function(){
});
});
$(window).on('hashchange', function(e) {
if (ignoreHashChange) {
ignoreHashChange = false;
return;
}
var loc = location.hash.split('&')[1].split('@');
if (loc[1]) {
showTab(loc[0],loc[1]);
}
else {
showTab(loc[0]);
}
ignoreHashChange = false;
});