forked from 0x2620/pandora
set isUnloading already in beforeunloadWindow to prevent error dialog on page reload
This commit is contained in:
parent
76aa590bbb
commit
11c604ed8a
1 changed files with 2 additions and 2 deletions
|
@ -1112,11 +1112,11 @@ pandora.selectList = function() {
|
|||
pandora.beforeunloadWindow = function() {
|
||||
if (pandora.firefogg)
|
||||
return "Encoding is currently running\nDo you want to leave this page?";
|
||||
//prevent error dialogs on unload
|
||||
pandora.isUnloading = true;
|
||||
}
|
||||
|
||||
pandora.unloadWindow = function() {
|
||||
//prevent errors on unload
|
||||
pandora.isUnloading = true;
|
||||
/*
|
||||
// fixme: ajax request has to have async set to false for this to work
|
||||
pandora.user.ui.section == 'items'
|
||||
|
|
Loading…
Reference in a new issue