Fix the infinite spinner bug with the file manager store

This commit is contained in:
yflory
2016-12-08 18:52:36 +01:00
parent 43ccd11adc
commit ee56f5608f
7 changed files with 61 additions and 15 deletions

View File

@@ -153,8 +153,15 @@ define([
}
onReady(f, rt.proxy, Cryptpad.storageKey);
})
.on('disconnect', function () {
.on('disconnect', function (info) {
//setEditable(false);
if (info.error) {
//Cryptpad.alert(Messages.websocketError);
if (typeof Cryptpad.storeError === "function") {
Cryptpad.storeError();
}
return;
}
Cryptpad.alert(Messages.common_connectionLost);
});