diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 6a1ee4caa..e276d926b 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -2097,15 +2097,14 @@ define([ this.mnuColorSchema.addItem({ caption: '--' }); - } else { - this.mnuColorSchema.addItem({ - template: itemTemplate, - cls: 'color-schemas-menu', - colors: schemecolors, - caption: (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(), - value: index - }); } + this.mnuColorSchema.addItem({ + template: itemTemplate, + cls: 'color-schemas-menu', + colors: schemecolors, + caption: (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(), + value: index + }); }, this); }, diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index b0e1a4f69..e069b85c9 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -1318,15 +1318,14 @@ define([ mnuColorSchema.addItem({ caption: '--' }); - } else { - mnuColorSchema.addItem({ - template: itemTemplate, - cls: 'color-schemas-menu', - colors: schemecolors, - caption: (index < 21) ? (me.schemeNames[index] || schema.get_name()) : schema.get_name(), - value: index - }); } + mnuColorSchema.addItem({ + template: itemTemplate, + cls: 'color-schemas-menu', + colors: schemecolors, + caption: (index < 21) ? (me.schemeNames[index] || schema.get_name()) : schema.get_name(), + value: index + }); }, this); } }, diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 14bfff2ee..71747782c 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -1951,15 +1951,14 @@ define([ this.mnuColorSchema.addItem({ caption : '--' }); - } else { - this.mnuColorSchema.addItem({ - template: itemTemplate, - cls : 'color-schemas-menu', - colors : schemecolors, - caption : (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(), - value : index - }); } + this.mnuColorSchema.addItem({ + template: itemTemplate, + cls : 'color-schemas-menu', + colors : schemecolors, + caption : (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(), + value : index + }); }, this); },