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

This commit is contained in:
Oleg Korshul 2016-05-13 12:25:18 +03:00
parent e1612fbaf6
commit 1997c8a175
3 changed files with 6 additions and 8 deletions

View file

@ -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));

View file

@ -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));

View file

@ -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));