Commit e1530534 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused fCallbackSendCommand, _sendCommandCallback,

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65051 954022d7-b5bf-4e40-9824-e11837661b57
parent 95489e8c
......@@ -164,8 +164,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.formulasList = null; // Список всех формул
this.fCallbackSendCommand = null;
this.fCurCallback = null;
this._init();
......@@ -192,10 +190,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
});
this.formulasList = getFormulasInfo();
this.fCallbackSendCommand = function(fCallback, error, result) {
t._sendCommandCallback(fCallback, error, result);
};
};
spreadsheet_api.prototype.asc_CheckGuiControlColors = function() {
......@@ -846,30 +840,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
return this.wbModel.getWorksheet(sheetIndex).PagePrintOptions;
};
spreadsheet_api.prototype._sendCommandCallback = function(fCallback, error, result) {
if (error || !result) {
this.handlers.trigger("asc_onError", c_oAscError.ID.Unknown, c_oAscError.Level.Critical);
if (fCallback) {
fCallback({returnCode: c_oAscError.Level.Critical, val: c_oAscError.ID.Unknown});
}
return;
}
var t = this, codePageCsv, delimiterCsv;
switch (result["type"]) {
case "updateversion":
if (this.asc_getViewerMode()) {
this._onOpenCommand(fCallback, result["data"]);
} else {
this.handlers.trigger("asc_onDocumentUpdateVersion", function() {
t.asc_setViewerMode(true);
t._onOpenCommand(fCallback, result["data"]);
});
}
break;
}
};
spreadsheet_api.prototype._onOpenCommand = function(callback, data) {
var t = this;
g_fOpenFileCommand(data, this.documentUrlChanges, Asc.c_oSerFormat.Signature, function(error, result) {
......
......@@ -5020,26 +5020,6 @@ asc_docs_api.prototype.sync_ContextMenuCallback = function(Data)
this.asc_fireCallback("asc_onContextMenu", Data);
};
function _sendCommandCallback (fCallback, error, result) {
if (error || !result) {
editor.asc_fireCallback("asc_onError",c_oAscError.ID.Unknown,c_oAscError.Level.Critical);
if(fCallback)
fCallback();
return;
}
switch(result["type"]){
case "updateversion":
if (editor.isViewMode)
_onOpenCommand(fCallback, result);
else
editor.asc_fireCallback("asc_onDocumentUpdateVersion", function () {
editor.SetViewMode(true);
_onOpenCommand(fCallback, result);
});
break;
}
}
function _onOpenCommand(fCallback, incomeObject) {
g_fOpenFileCommand(incomeObject["data"], documentUrlChanges, c_oSerFormat.Signature, function (error, result) {
if (error || !result.bSerFormat) {
......
......@@ -448,7 +448,6 @@ CContextMenuData.prototype['get_Type'] = CContextMenuData.prototype.get_Type;
CContextMenuData.prototype['get_X'] = CContextMenuData.prototype.get_X;
CContextMenuData.prototype['get_Y'] = CContextMenuData.prototype.get_Y;
CContextMenuData.prototype['get_IsSlideSelect'] = CContextMenuData.prototype.get_IsSlideSelect;
window['_sendCommandCallback'] = _sendCommandCallback;
window['_onOpenCommand'] = _onOpenCommand;
window['_downloadAs'] = _downloadAs;
window['CDocOpenProgress'] = CDocOpenProgress;
......
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