diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 5405dd213..60c729e5b 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -2098,12 +2098,13 @@ define([ caption: '--' }); } + var name = schema.get_name(); 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, + caption: (index < 21) ? (me.SchemeNames[index] || name) : name, + value: name, checkable: true, toggleGroup: 'menuSchema' }); diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 75546181f..26e863233 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -1319,12 +1319,13 @@ define([ caption: '--' }); } + var name = schema.get_name(); mnuColorSchema.addItem({ template: itemTemplate, cls: 'color-schemas-menu', colors: schemecolors, - caption: (index < 21) ? (me.schemeNames[index] || schema.get_name()) : schema.get_name(), - value: index, + caption: (index < 21) ? (me.SchemeNames[index] || name) : name, + value: name, checkable: true, toggleGroup: 'menuSchema' }); diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 9b7168ecf..79bdbd338 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -1952,12 +1952,13 @@ define([ caption : '--' }); } + var name = schema.get_name(); 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, + caption: (index < 21) ? (me.SchemeNames[index] || name) : name, + value: name, checkable: true, toggleGroup: 'menuSchema' });