LSP: back button support
This commit is contained in:
parent
723c8b8b3b
commit
0e440231a3
2 changed files with 21 additions and 0 deletions
14
lsp/main.js
14
lsp/main.js
|
@ -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;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue