Commit 1997c8a1 authored by Oleg Korshul's avatar Oleg Korshul

выставление мобильной версии

parent e1612fba
......@@ -59,10 +59,9 @@ Ext.define('DE.controller.Main', {
app = this.getApplication();
api = new Asc.asc_docs_api({
'id-view' : 'editor_sdk'
'id-view' : 'id-sdkeditor',
'mobile' : true
});
api.SetMobileVersion(true);
api.initEvents2MobileAdvances();
api.asc_registerCallback('asc_onStartAction', Ext.bind(this.onLongActionBegin, this));
api.asc_registerCallback('asc_onError', Ext.bind(this.onError, this));
......
......@@ -61,11 +61,10 @@ Ext.define('PE.controller.Main', {
profile = app.getCurrentProfile();
api = new Asc.asc_docs_api({
'id-view' : 'editor_sdk'
'id-view' : 'id-sdkeditor',
'mobile' : true
});
api.SetMobileVersion(true);
api.SetThemesPath("../../../../sdkjs/slide/themes/");
api.initEvents2MobileAdvances();
api.asc_registerCallback('asc_onStartAction', Ext.bind(this.onLongActionBegin, this));
api.asc_registerCallback('asc_onError', Ext.bind(this.onError, this));
......
......@@ -65,9 +65,9 @@ Ext.define('SSE.controller.Main', {
// Initialize api
this.api = new Asc.spreadsheet_api({
'id-view' : 'id-sdkeditor'
'id-view' : 'id-sdkeditor',
'mobile' : true
});
this.api.asc_setMobileVersion(true);
this.api.asc_registerCallback('asc_onAdvancedOptions', Ext.bind(this.onAdvancedOptions, this));
this.api.asc_registerCallback('asc_onOpenDocumentProgress', Ext.bind(this.onOpenDocumentProgress, this));
......
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