Disable editing on Asc.c_oAscError.ID.DataEncrypted error

This commit is contained in:
Julia Radzhabova 2018-06-28 15:56:44 +03:00
parent 57c41e40e6
commit cc7b233a6a
6 changed files with 24 additions and 0 deletions

View file

@ -1417,6 +1417,10 @@ define([
Common.NotificationCenter.trigger('goback');
}
}
if (id == Asc.c_oAscError.ID.DataEncrypted) {
this.api.asc_coAuthoringDisconnect();
Common.NotificationCenter.trigger('api:disconnect');
}
}
else {
Common.Gateway.reportWarning(id, config.msg);

View file

@ -897,6 +897,10 @@ define([
Common.NotificationCenter.trigger('goback');
}
}
if (id == Asc.c_oAscError.ID.DataEncrypted) {
this.api.asc_coAuthoringDisconnect();
Common.NotificationCenter.trigger('api:disconnect');
}
}
else {
Common.Gateway.reportWarning(id, config.msg);

View file

@ -1161,6 +1161,10 @@ define([
}
}
}
if (id == Asc.c_oAscError.ID.DataEncrypted) {
this.api.asc_coAuthoringDisconnect();
Common.NotificationCenter.trigger('api:disconnect');
}
}
else {
Common.Gateway.reportWarning(id, config.msg);

View file

@ -848,6 +848,10 @@ define([
Common.NotificationCenter.trigger('goback');
}
}
if (id == Asc.c_oAscError.ID.DataEncrypted) {
this.api.asc_coAuthoringDisconnect();
Common.NotificationCenter.trigger('api:disconnect');
}
} else {
Common.Gateway.reportWarning(id, config.msg);

View file

@ -1325,6 +1325,10 @@ define([
}
}
}
if (id == Asc.c_oAscError.ID.DataEncrypted) {
this.api.asc_coAuthoringDisconnect();
Common.NotificationCenter.trigger('api:disconnect');
}
} else {
Common.Gateway.reportWarning(id, config.msg);

View file

@ -992,6 +992,10 @@ define([
Common.NotificationCenter.trigger('goback');
}
}
if (id == Asc.c_oAscError.ID.DataEncrypted) {
this.api.asc_coAuthoringDisconnect();
Common.NotificationCenter.trigger('api:disconnect');
}
}
else {
Common.Gateway.reportWarning(id, config.msg);