|
|
|
@ -3588,7 +3588,7 @@ define([
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
UIElements.onServerError = function (common, err, toolbar, cb) {
|
|
|
|
|
if (["EDELETED", "EEXPIRED"].indexOf(err.type) === -1) { return; }
|
|
|
|
|
if (["EDELETED", "EEXPIRED", "ERESTRICTED"].indexOf(err.type) === -1) { return; }
|
|
|
|
|
var priv = common.getMetadataMgr().getPrivateData();
|
|
|
|
|
var msg = err.type;
|
|
|
|
|
if (err.type === 'EEXPIRED') {
|
|
|
|
@ -3602,11 +3602,13 @@ define([
|
|
|
|
|
if (err.loaded) {
|
|
|
|
|
msg += Messages.errorCopy;
|
|
|
|
|
}
|
|
|
|
|
} else if (err.type === 'ERESTRICTED') {
|
|
|
|
|
msg = Messages.restrictedError || "RESTRICTED"; // XXX
|
|
|
|
|
}
|
|
|
|
|
var sframeChan = common.getSframeChannel();
|
|
|
|
|
sframeChan.event('EV_SHARE_OPEN', {hidden: true});
|
|
|
|
|
if (toolbar && typeof toolbar.deleted === "function") { toolbar.deleted(); }
|
|
|
|
|
UI.errorLoadingScreen(msg, true, true);
|
|
|
|
|
UI.errorLoadingScreen(msg, Boolean(err.loaded), Boolean(err.loaded));
|
|
|
|
|
(cb || function () {})();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|