From aad520a23ff34b2e5a4c1b5b4e4ada61be90f957 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 25 Nov 2016 12:43:53 +0300 Subject: [PATCH] [SSE mobile] added controller for CellEditor --- apps/spreadsheeteditor/mobile/app-dev.js | 2 ++ apps/spreadsheeteditor/mobile/app/controller/Main.js | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/app-dev.js b/apps/spreadsheeteditor/mobile/app-dev.js index 1aca0f40c..7586286e1 100644 --- a/apps/spreadsheeteditor/mobile/app-dev.js +++ b/apps/spreadsheeteditor/mobile/app-dev.js @@ -118,6 +118,7 @@ require([ 'Toolbar', 'Main', 'DocumentHolder' + , 'CellEditor' // ,'Settings' // ,'EditContainer' // ,'EditText' @@ -182,6 +183,7 @@ require([ 'spreadsheeteditor/mobile/app/controller/Toolbar', 'spreadsheeteditor/mobile/app/controller/Main', 'spreadsheeteditor/mobile/app/controller/DocumentHolder' + , 'spreadsheeteditor/mobile/app/controller/CellEditor' // ,'documenteditor/mobile/app/controller/Settings' // ,'documenteditor/mobile/app/controller/edit/EditContainer' // ,'documenteditor/mobile/app/controller/edit/EditText' diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 8ff677ee9..69746ad6d 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -115,7 +115,6 @@ define([ 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_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_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) { var action = {id: id, type: type}; this.stackLongActions.push(action);