From 3fa471877268195e2e816bcdd6cd42584a722492 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 6 Mar 2017 14:52:24 +0300 Subject: [PATCH] [mobile] Fix bug 34131 --- apps/documenteditor/mobile/app/view/edit/EditShape.js | 5 ++++- apps/presentationeditor/mobile/app/view/edit/EditShape.js | 5 ++++- apps/spreadsheeteditor/mobile/app/view/edit/EditShape.js | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/mobile/app/view/edit/EditShape.js b/apps/documenteditor/mobile/app/view/edit/EditShape.js index e5c0025ac..8232c75e3 100644 --- a/apps/documenteditor/mobile/app/view/edit/EditShape.js +++ b/apps/documenteditor/mobile/app/view/edit/EditShape.js @@ -86,10 +86,13 @@ define([ // Render layout render: function () { + var shapes = Common.SharedSettings.get('shapes').slice(); + shapes.splice(0, 1); // Remove line shapes + this.layout = $('
').append(this.template({ android : Common.SharedSettings.get('android'), phone : Common.SharedSettings.get('phone'), - shapes : Common.SharedSettings.get('shapes'), + shapes : shapes, scope : this })); diff --git a/apps/presentationeditor/mobile/app/view/edit/EditShape.js b/apps/presentationeditor/mobile/app/view/edit/EditShape.js index fe0f968de..7c5ad3cc6 100644 --- a/apps/presentationeditor/mobile/app/view/edit/EditShape.js +++ b/apps/presentationeditor/mobile/app/view/edit/EditShape.js @@ -86,10 +86,13 @@ define([ // Render layout render: function () { + var shapes = Common.SharedSettings.get('shapes').slice(); + shapes.splice(0, 1); // Remove line shapes + this.layout = $('
').append(this.template({ android : Common.SharedSettings.get('android'), phone : Common.SharedSettings.get('phone'), - shapes : Common.SharedSettings.get('shapes'), + shapes : shapes, scope : this })); diff --git a/apps/spreadsheeteditor/mobile/app/view/edit/EditShape.js b/apps/spreadsheeteditor/mobile/app/view/edit/EditShape.js index 0072614a1..9e89bcfe4 100644 --- a/apps/spreadsheeteditor/mobile/app/view/edit/EditShape.js +++ b/apps/spreadsheeteditor/mobile/app/view/edit/EditShape.js @@ -81,11 +81,14 @@ define([ // Render layout render: function () { + var shapes = Common.SharedSettings.get('shapes').slice(); + shapes.splice(0, 1); // Remove line shapes + this.layout = $('
').append(this.template({ android : Common.SharedSettings.get('android'), phone : Common.SharedSettings.get('phone'), imgpath : '../../common/mobile/resources/img/shapes', - shapes : Common.SharedSettings.get('shapes'), + shapes : shapes, scope : this }));