Commit 0ff5d20d authored by Oleg Korshul's avatar Oleg Korshul Committed by Alexander.Trofimov

mobileversion

parent 28c788ea
...@@ -3187,6 +3187,9 @@ var editor; ...@@ -3187,6 +3187,9 @@ var editor;
spreadsheet_api.prototype._onEndLoadSdk = function() { spreadsheet_api.prototype._onEndLoadSdk = function() {
History = AscCommon.History; History = AscCommon.History;
if (this.isMobileVersion)
this.asc_setMobileVersion(true);
spreadsheet_api.superclass._onEndLoadSdk.call(this); spreadsheet_api.superclass._onEndLoadSdk.call(this);
this.controller = new AscCommonExcel.asc_CEventsController(); this.controller = new AscCommonExcel.asc_CEventsController();
......
...@@ -20,7 +20,7 @@ function baseEditorsApi(config, editorId) { ...@@ -20,7 +20,7 @@ function baseEditorsApi(config, editorId) {
this.HtmlElementName = config['id-view'] || ''; this.HtmlElementName = config['id-view'] || '';
this.HtmlElement = null; this.HtmlElement = null;
this.isMobileVersion = false; this.isMobileVersion = (config['mobile'] === true) ? true : false;
this.isViewMode = false; this.isViewMode = false;
......
...@@ -5176,6 +5176,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() { ...@@ -5176,6 +5176,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() {
} }
} }
if (this.isMobileVersion)
this.SetMobileVersion(true);
this.asc_setViewMode(this.isViewMode); this.asc_setViewMode(this.isViewMode);
asc_docs_api.superclass._onEndLoadSdk.call(this); asc_docs_api.superclass._onEndLoadSdk.call(this);
......
...@@ -6733,6 +6733,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() { ...@@ -6733,6 +6733,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() {
} }
} }
if (this.isMobileVersion)
this.SetMobileVersion(true);
this.asc_setViewMode(this.isViewMode); this.asc_setViewMode(this.isViewMode);
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw); this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
......
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