Remove more handlers when closing the drive

This commit is contained in:
yflory
2019-09-17 11:57:30 +02:00
parent a7c274e6ae
commit 9cf99a8b65
2 changed files with 24 additions and 14 deletions

View File

@@ -437,13 +437,13 @@ define([
var onDisconnect = function (noAlert) {
setEditable(false);
if (driveAPP.refresh) { driveAPP.refresh(); }
if (APP.team && driveAPP.refresh) { driveAPP.refresh(); }
toolbar.failed();
if (!noAlert) { UI.alert(Messages.common_connectionLost, undefined, true); }
};
var onReconnect = function (info) {
setEditable(true);
if (driveAPP.refresh) { driveAPP.refresh(); }
if (APP.team && driveAPP.refresh) { driveAPP.refresh(); }
toolbar.reconnecting(info.myId);
UI.findOKButton().click();
};