From 077062e2c5785b1229f55cd2d0fe5761d353c3cb Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Wed, 19 Jun 2019 11:58:54 +0300 Subject: [PATCH] [se] Refactoring Delete asc_CChartStyle. Use CStyleImage. asc_getImageUrl -> asc_getImage, asc_getStyle -> asc_getName --- apps/spreadsheeteditor/main/app/view/ChartSettings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js index f6a083c93..68cf3afdf 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js @@ -1074,16 +1074,16 @@ define([ if (count>0 && count==styles.length) { var data = stylesStore.models; _.each(styles, function(style, index){ - data[index].set('imageUrl', style.asc_getImageUrl()); + data[index].set('imageUrl', style.asc_getImage()); }); } else { var stylearray = [], selectedIdx = -1; _.each(styles, function(item, index){ stylearray.push({ - imageUrl: item.asc_getImageUrl(), - data : item.asc_getStyle(), - tip : me.textStyle + ' ' + item.asc_getStyle() + imageUrl: item.asc_getImage(), + data : item.asc_getName(), + tip : me.textStyle + ' ' + item.asc_getName() }); }); stylesStore.reset(stylearray, {silent: false});