changed: load previous on back button if search window if hidden
This commit is contained in:
parent
6d3b743304
commit
269d3d4293
1 changed files with 8 additions and 1 deletions
7
main.js
7
main.js
|
|
@ -1205,8 +1205,15 @@ function init()
|
|||
window.onpopstate = function(evt)
|
||||
{
|
||||
history.pushState({}, '', '.');
|
||||
if (!searchdialog.hidden)
|
||||
{
|
||||
esc(evt);
|
||||
}
|
||||
else
|
||||
{
|
||||
loadprevious();
|
||||
}
|
||||
}
|
||||
|
||||
initsnippets();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue