From 6e8a5309b13fbbe5e6df6739cee94d2b162d642d Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Mon, 16 Dec 2019 15:16:19 +0300 Subject: [PATCH] [mobile] Fix bug 43877 --- apps/documenteditor/mobile/app/controller/Settings.js | 11 ++++++----- .../mobile/app/controller/Settings.js | 11 ++++++----- .../mobile/app/controller/Settings.js | 11 ++++++----- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/Settings.js b/apps/documenteditor/mobile/app/controller/Settings.js index ae3df00a3..46bde3512 100644 --- a/apps/documenteditor/mobile/app/controller/Settings.js +++ b/apps/documenteditor/mobile/app/controller/Settings.js @@ -355,20 +355,21 @@ define([ onSendThemeColorSchemes: function (schemas) { templateInsert = ""; _.each(schemas, function (schema, index) { - var colors = schema.get_colors();//schema.colors; - templateInsert = templateInsert + "
"; }, this); }, onColorSchemaClick: function(event) { if (this.api) { - var ind = $(event.currentTarget).children('input').val(); - this.api.ChangeColorScheme(ind); + var name = $(event.currentTarget).children('input').val(); + this.api.ChangeColorScheme(name); } }, diff --git a/apps/presentationeditor/mobile/app/controller/Settings.js b/apps/presentationeditor/mobile/app/controller/Settings.js index e034693f2..223fb54d0 100644 --- a/apps/presentationeditor/mobile/app/controller/Settings.js +++ b/apps/presentationeditor/mobile/app/controller/Settings.js @@ -250,20 +250,21 @@ define([ onSendThemeColorSchemes: function (schemas) { templateInsert = ""; _.each(schemas, function (schema, index) { - var colors = schema.get_colors();//schema.colors; - templateInsert = templateInsert + "
"; }, this); }, onColorSchemaClick: function (event) { if (this.api) { - var ind = $(event.currentTarget).children('input').val(); - this.api.ChangeColorScheme(ind); + var name = $(event.currentTarget).children('input').val(); + this.api.ChangeColorScheme(name); } }, diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js index b8a176d08..ad3aac455 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js @@ -511,20 +511,21 @@ define([ onSendThemeColorSchemes: function (schemas) { templateInsert = ""; _.each(schemas, function (schema, index) { - var colors = schema.get_colors();//schema.colors; - templateInsert = templateInsert + "
"; }, this); }, onColorSchemaClick: function(event) { if (this.api) { - var ind = $(event.currentTarget).children('input').val(); - this.api.asc_ChangeColorScheme(ind); + var name = $(event.currentTarget).children('input').val(); + this.api.asc_ChangeColorScheme(name); } },