[SSE mobile] added controller for CellEditor
This commit is contained in:
parent
12415ccb91
commit
aad520a23f
|
@ -118,6 +118,7 @@ require([
|
||||||
'Toolbar',
|
'Toolbar',
|
||||||
'Main',
|
'Main',
|
||||||
'DocumentHolder'
|
'DocumentHolder'
|
||||||
|
, 'CellEditor'
|
||||||
// ,'Settings'
|
// ,'Settings'
|
||||||
// ,'EditContainer'
|
// ,'EditContainer'
|
||||||
// ,'EditText'
|
// ,'EditText'
|
||||||
|
@ -182,6 +183,7 @@ require([
|
||||||
'spreadsheeteditor/mobile/app/controller/Toolbar',
|
'spreadsheeteditor/mobile/app/controller/Toolbar',
|
||||||
'spreadsheeteditor/mobile/app/controller/Main',
|
'spreadsheeteditor/mobile/app/controller/Main',
|
||||||
'spreadsheeteditor/mobile/app/controller/DocumentHolder'
|
'spreadsheeteditor/mobile/app/controller/DocumentHolder'
|
||||||
|
, 'spreadsheeteditor/mobile/app/controller/CellEditor'
|
||||||
// ,'documenteditor/mobile/app/controller/Settings'
|
// ,'documenteditor/mobile/app/controller/Settings'
|
||||||
// ,'documenteditor/mobile/app/controller/edit/EditContainer'
|
// ,'documenteditor/mobile/app/controller/edit/EditContainer'
|
||||||
// ,'documenteditor/mobile/app/controller/edit/EditText'
|
// ,'documenteditor/mobile/app/controller/edit/EditText'
|
||||||
|
|
|
@ -115,7 +115,6 @@ define([
|
||||||
me.api.asc_registerCallback('asc_onPrintUrl', _.bind(me.onPrintUrl, me));
|
me.api.asc_registerCallback('asc_onPrintUrl', _.bind(me.onPrintUrl, me));
|
||||||
me.api.asc_registerCallback('asc_onDocumentName', _.bind(me.onDocumentName, me));
|
me.api.asc_registerCallback('asc_onDocumentName', _.bind(me.onDocumentName, me));
|
||||||
me.api.asc_registerCallback('asc_onEndAction', _.bind(me.onLongActionEnd, me));
|
me.api.asc_registerCallback('asc_onEndAction', _.bind(me.onLongActionEnd, me));
|
||||||
me.api.asc_registerCallback('asc_onSelectionNameChanged', _.bind(me.onApiCellSelection, me));
|
|
||||||
/**/
|
/**/
|
||||||
// this.api.asc_registerCallback('asc_onCoAuthoringDisconnect', _.bind(this.onCoAuthoringDisconnect, this));
|
// this.api.asc_registerCallback('asc_onCoAuthoringDisconnect', _.bind(this.onCoAuthoringDisconnect, this));
|
||||||
// this.api.asc_registerCallback('asc_onPrintUrl', _.bind(this.onPrintUrl, this));
|
// this.api.asc_registerCallback('asc_onPrintUrl', _.bind(this.onPrintUrl, this));
|
||||||
|
@ -314,15 +313,6 @@ define([
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiCellSelection: function(info) {
|
|
||||||
if ( info ) {
|
|
||||||
if ( !this.$cellname )
|
|
||||||
this.$cellname = $('#ce-cell-name');
|
|
||||||
|
|
||||||
this.$cellname.html(typeof(info)=='string' ? info : info.asc_getName());
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
onLongActionBegin: function(type, id) {
|
onLongActionBegin: function(type, id) {
|
||||||
var action = {id: id, type: type};
|
var action = {id: id, type: type};
|
||||||
this.stackLongActions.push(action);
|
this.stackLongActions.push(action);
|
||||||
|
|
Loading…
Reference in a new issue