Commit 3db4cf8f authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

_OfflineAppDocumentStartLoad to baseEditorsApi

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66615 954022d7-b5bf-4e40-9824-e11837661b57
parent 83befc5a
......@@ -266,6 +266,17 @@ baseEditorsApi.prototype.asc_LoadDocument = function(isVersionHistory) {
sendCommand2(this, null, rData);
}
};
baseEditorsApi.prototype._OfflineAppDocumentStartLoad = function() {
var t = this;
var scriptElem = document.createElement('script');
scriptElem.onload = scriptElem.onerror = function() {
t._OfflineAppDocumentEndLoad();
};
scriptElem.setAttribute('src', this.documentUrl + 'editor.js');
scriptElem.setAttribute('type', 'text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
};
baseEditorsApi.prototype._onOpenCommand = function(data) {
};
baseEditorsApi.prototype._onNeedParams = function(data) {
......
......@@ -664,18 +664,6 @@ var editor;
});
};
spreadsheet_api.prototype._OfflineAppDocumentStartLoad = function() {
var t = this;
var scriptElem = document.createElement('script');
scriptElem.onload = scriptElem.onerror = function() {
t._OfflineAppDocumentEndLoad();
};
scriptElem.setAttribute('src', this.documentUrl + "editor.js");
scriptElem.setAttribute('type', 'text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
};
spreadsheet_api.prototype._OfflineAppDocumentEndLoad = function() {
var data = getTestWorkbook();
var sData = data + "";
......
......@@ -678,17 +678,6 @@ asc_docs_api.prototype.OpenDocument2 = function(url, gObject)
setInterval(SafariIntervalFocus, 10);
};
asc_docs_api.prototype._OfflineAppDocumentStartLoad = function() {
var t = this, scriptElem = document.createElement('script');
scriptElem.onload = scriptElem.onerror = function() {
t._OfflineAppDocumentEndLoad();
};
scriptElem.setAttribute('src', this.documentUrl + "editor.js");
scriptElem.setAttribute('type', 'text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
};
asc_docs_api.prototype._OfflineAppDocumentEndLoad = function() {
if (undefined == window["editor_bin"])
return;
......
......@@ -6185,18 +6185,6 @@ asc_docs_api.prototype.OnMouseUp = function(x, y)
};
asc_docs_api.prototype.asyncImageEndLoaded2 = null;
asc_docs_api.prototype._OfflineAppDocumentStartLoad = function() {
var t = this, scriptElem = document.createElement('script');
scriptElem.onload = scriptElem.onerror = function() {
t._OfflineAppDocumentEndLoad();
};
scriptElem.setAttribute('src', this.documentUrl + "editor.js");
scriptElem.setAttribute('type', 'text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
};
asc_docs_api.prototype._OfflineAppDocumentEndLoad = function() {
var bIsViewer = false;
var sData = window["editor_bin"];
......
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