set isUnloading already in beforeunloadWindow to prevent error dialog on page reload

This commit is contained in:
j 2012-05-29 15:19:18 +00:00
parent 76aa590bbb
commit 11c604ed8a

View file

@ -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'