From a100cda6ba218b9291759208a39089580b1655ff Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 16 Jul 2018 14:55:43 +0300 Subject: [PATCH] Fix Bug 38107 --- apps/documenteditor/main/app/view/ChartSettings.js | 4 ++++ apps/presentationeditor/main/app/view/ChartSettings.js | 4 ++++ apps/spreadsheeteditor/main/app/view/ChartSettings.js | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/apps/documenteditor/main/app/view/ChartSettings.js b/apps/documenteditor/main/app/view/ChartSettings.js index d3e281b30..eb8b53bca 100644 --- a/apps/documenteditor/main/app/view/ChartSettings.js +++ b/apps/documenteditor/main/app/view/ChartSettings.js @@ -501,7 +501,11 @@ define([ stylesStore.reset(stylearray, {silent: false}); } } + } else { + this.cmbChartStyle.menuPicker.store.reset(); + this.cmbChartStyle.clearComboView(); } + this.cmbChartStyle.setDisabled(!styles || styles.length<1 || this._locked); }, setLocked: function (locked) { diff --git a/apps/presentationeditor/main/app/view/ChartSettings.js b/apps/presentationeditor/main/app/view/ChartSettings.js index 42c0a580d..6d208a271 100644 --- a/apps/presentationeditor/main/app/view/ChartSettings.js +++ b/apps/presentationeditor/main/app/view/ChartSettings.js @@ -430,7 +430,11 @@ define([ stylesStore.reset(stylearray, {silent: false}); } } + } else { + this.cmbChartStyle.menuPicker.store.reset(); + this.cmbChartStyle.clearComboView(); } + this.cmbChartStyle.setDisabled(!styles || styles.length<1 || this._locked); }, onWidthChange: function(field, newValue, oldValue, eOpts){ diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js index e6bdca933..81a0f4bcf 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js @@ -1088,7 +1088,11 @@ define([ stylesStore.reset(stylearray, {silent: false}); } } + } else { + this.cmbChartStyle.menuPicker.store.reset(); + this.cmbChartStyle.clearComboView(); } + this.cmbChartStyle.setDisabled(!styles || styles.length<1 || this._locked); }, updateSparkStyles: function(styles) {