From b3826780328d32fe4195676a7408eb9744932318 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 21 Nov 2016 15:29:07 +0300 Subject: [PATCH] [DE mobile] Remove objects. --- apps/documenteditor/mobile/app/controller/DocumentHolder.js | 2 +- apps/documenteditor/mobile/app/controller/edit/EditChart.js | 3 ++- apps/documenteditor/mobile/app/controller/edit/EditImage.js | 3 ++- apps/documenteditor/mobile/app/controller/edit/EditShape.js | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js index 381618c9b..2271cf6ec 100644 --- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js @@ -99,7 +99,7 @@ define([ } else if ('paste' == eventName) { me.api.Paste(); } else if ('delete' == eventName) { - console.debug('IMPLEMENT: Delete fragment'); + me.api.asc_Remove(); } else if ('edit' == eventName) { me.view.hideMenu(); diff --git a/apps/documenteditor/mobile/app/controller/edit/EditChart.js b/apps/documenteditor/mobile/app/controller/edit/EditChart.js index 4bdf4c28c..bd77c5b00 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditChart.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditChart.js @@ -317,7 +317,8 @@ define([ }, onRemoveChart: function () { - console.debug('REMOVE Chart!!!'); + this.api.asc_Remove(); + DE.getController('EditContainer').hideModal(); }, onReorder: function (e) { diff --git a/apps/documenteditor/mobile/app/controller/edit/EditImage.js b/apps/documenteditor/mobile/app/controller/edit/EditImage.js index fcaf0d7cd..3f33ef5b4 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditImage.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditImage.js @@ -200,7 +200,8 @@ define([ }, onRemoveImage: function () { - console.debug('REMOVE image!!!'); + this.api.asc_Remove(); + DE.getController('EditContainer').hideModal(); }, onWrapType: function (e) { diff --git a/apps/documenteditor/mobile/app/controller/edit/EditShape.js b/apps/documenteditor/mobile/app/controller/edit/EditShape.js index e93c2f5c2..73b5f6be0 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditShape.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditShape.js @@ -276,7 +276,8 @@ define([ // Handlers onRemoveShape: function () { - console.debug('REMOVE SHAPE!!!'); + this.api.asc_Remove(); + DE.getController('EditContainer').hideModal(); }, onReorder: function (e) {