diff --git a/apps/common/main/lib/component/ColorButton.js b/apps/common/main/lib/component/ColorButton.js index b14e4c280..b64e4817a 100644 --- a/apps/common/main/lib/component/ColorButton.js +++ b/apps/common/main/lib/component/ColorButton.js @@ -98,7 +98,7 @@ define([ cls: 'shifted-left', additionalAlign: options.additionalAlign, items: (options.additionalItems ? options.additionalItems : []).concat(auto).concat([ - { template: _.template('
') }, + { template: _.template('
') }, {caption: '--'}, { id: id + '-color-new', diff --git a/apps/common/main/lib/component/ThemeColorPalette.js b/apps/common/main/lib/component/ThemeColorPalette.js index 42f1cf928..c522a02c2 100644 --- a/apps/common/main/lib/component/ThemeColorPalette.js +++ b/apps/common/main/lib/component/ThemeColorPalette.js @@ -52,6 +52,7 @@ define([ dynamiccolors: 10, standardcolors: 10, themecolors: 10, + columns: 10, effects: 5, allowReselect: true, transparent: false, @@ -62,7 +63,7 @@ define([ template : _.template( - '
' + + '
' + '<% var me = this; var idx = 0; %>' + '<% $(colors).each(function(num, item) { %>' + '<% if (me.isBlankSeparator(item)) { %>
' + @@ -76,6 +77,9 @@ define([ ' ' + '' + '<% } else if (me.isEffect(item)) { %>' + + '<% if (idx>0 && me.columns>0 && idx%me.columns===0) { %> ' + + '
' + + '<% } %>' + '' + ' ' + '' + @@ -85,7 +89,7 @@ define([ '<% }); %>' + '
' + '<% if (me.options.dynamiccolors!==undefined) { %>' + - '
' + + '
' + '
' + '
<%=me.textRecentColors%>
' + '<% for (var i=0; i' + @@ -105,6 +109,7 @@ define([ el = me.$el || $(this.el); this.colors = me.options.colors || this.generateColorData(me.options.themecolors, me.options.effects, me.options.standardcolors, me.options.transparent); + this.columns = me.options.columns || 0; this.enableKeyEvents= me.options.enableKeyEvents; this.tabindex = me.options.tabindex || 0; this.outerMenu = me.options.outerMenu; diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 601b50506..76d672cfb 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -898,7 +898,7 @@ define([ checkable: true }), {caption: '--'}, - {template: _.template('
')}, + {template: _.template('
')}, {caption: '--'}, { id: 'id-toolbar-menu-new-control-color', diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js index 16c4a82fb..57c87be52 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js @@ -531,7 +531,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', menu : new Common.UI.Menu({ menuAlign : 'tl-tr', items : [ - { template: _.template('
'), stopPropagation: true }, + { template: _.template('
'), stopPropagation: true }, {caption: '--'}, { template: _.template('' + this.textNewColor + ''), stopPropagation: true } ] diff --git a/apps/spreadsheeteditor/main/app/view/Statusbar.js b/apps/spreadsheeteditor/main/app/view/Statusbar.js index 70512f416..b012dd372 100644 --- a/apps/spreadsheeteditor/main/app/view/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/view/Statusbar.js @@ -335,7 +335,7 @@ define([ menuAlign: 'tl-tr', cls: 'color-tab', items: [ - { template: _.template('
') }, + { template: _.template('
') }, {caption: '--'}, { template: _.template('' + me.textNewColor + '') } ] diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 5f548d87b..b84b6db8b 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -2120,7 +2120,7 @@ define([ stopPropagation: true }, {caption: '--'}, - { template: _.template('
'), stopPropagation: true }, + { template: _.template('
'), stopPropagation: true }, {caption: '--'}, { template: _.template('' + this.textNewColor + ''), stopPropagation: true } ]