Commit a0a3c7d0 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

sync_TryUndoInFastCollaborative to events

_onEndPermissions to baseEditorsApi

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66454 954022d7-b5bf-4e40-9824-e11837661b57
parent 82c2519e
......@@ -158,6 +158,10 @@ baseEditorsApi.prototype.sync_StartAction = function() {
};
baseEditorsApi.prototype.sync_EndAction = function() {
};
baseEditorsApi.prototype.sync_TryUndoInFastCollaborative = function()
{
this.sendEvent("asc_OnTryUndoInFastCollaborative");
};
// Выставление интервала автосохранения (0 - означает, что автосохранения нет)
baseEditorsApi.prototype.asc_setAutoSaveGap = function(autoSaveGap) {
if (typeof autoSaveGap === "number") {
......@@ -180,6 +184,11 @@ baseEditorsApi.prototype.asc_coAuthoringGetUsers = function() {
baseEditorsApi.prototype.asc_getEditorPermissions = function() {
this._coAuthoringInit();
};
baseEditorsApi.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.sendEvent('asc_onGetEditorPermissions', new window['Asc'].asc_CAscEditorPermissions());
}
};
// Images & Charts & TextArts
baseEditorsApi.prototype.asc_setChartTranslate = function(translate) {
this.chartTranslate = translate;
......@@ -228,11 +237,7 @@ baseEditorsApi.prototype.asc_showRevision = function(newObj) {
};
baseEditorsApi.prototype.asc_undoAllChanges = function() {
};
// Offline mode
baseEditorsApi.prototype.asc_isOffline = function() {
return false;
};
baseEditorsApi.prototype.sync_TryUndoInFastCollaborative = function()
{
this.sendEvent("asc_OnTryUndoInFastCollaborative");
};
\ No newline at end of file
......@@ -391,12 +391,6 @@ var editor;
g_oUndoRedoAutoFilters = new UndoRedoAutoFilters(wbModel);
};
spreadsheet_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.handlers.trigger('asc_onGetEditorPermissions', new asc.asc_CAscEditorPermissions());
}
};
spreadsheet_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent) {//передаем число соответствующее своему формату. например c_oAscFileType.XLSX
if (!this.canSave || this.isChartEditor || c_oAscAdvancedOptionsAction.None !== this.advancedOptionsAction) {
return;
......
......@@ -623,11 +623,6 @@ asc_docs_api.prototype.sync_ChangeLastSelectedElement = function(type, obj)
asc_docs_api.prototype.Init = function() {
this.WordControl.Init();
};
asc_docs_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.asc_fireCallback('asc_onGetEditorPermissions', new window['Asc'].asc_CAscEditorPermissions());
}
};
asc_docs_api.prototype.asc_setLocale = function(val) {
};
asc_docs_api.prototype.LoadDocument = function() {
......
......@@ -540,11 +540,6 @@ asc_docs_api.prototype.Init = function()
this.WordControl.Init();
};
asc_docs_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.asc_fireCallback('asc_onGetEditorPermissions', new window['Asc'].asc_CAscEditorPermissions());
}
};
asc_docs_api.prototype.asc_setLocale = function(val)
{
this.InterfaceLocale = val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment