Color palette: fix keydown when recent colors changed
This commit is contained in:
parent
ac5a4a1018
commit
34a466c8c1
|
@ -187,6 +187,9 @@ define([
|
|||
colors = colors ? colors.split(',') : [];
|
||||
|
||||
var i = -1, colorEl, c = colors.length < this.options.dynamiccolors ? colors.length : this.options.dynamiccolors;
|
||||
if (this.options.hideEmptyColors && this._layoutParams && el.find('.dynamic-empty-color').length !== (this.options.dynamiccolors - c)) {// recalc indexed if change custom colors
|
||||
this._layoutParams = undefined;
|
||||
}
|
||||
while (++i < c) {
|
||||
colorEl = el.find('.color-dynamic-'+ i);
|
||||
colorEl.removeClass('dynamic-empty-color').removeClass(this.emptyColorsClass).attr('color', colors[i]);
|
||||
|
@ -527,8 +530,6 @@ define([
|
|||
for (var i=0; i<standardcolors; i++)
|
||||
arr.push('FFFFFF');
|
||||
}
|
||||
// if (this.options.dynamiccolors && (themecolors || standardcolors))
|
||||
// arr.push('-', '--');
|
||||
return arr;
|
||||
},
|
||||
|
||||
|
|
|
@ -183,6 +183,7 @@
|
|||
"Common.UI.SearchDialog.txtBtnReplaceAll": "Replace All",
|
||||
"Common.UI.SynchronizeTip.textDontShow": "Don't show this message again",
|
||||
"Common.UI.SynchronizeTip.textSynchronize": "The document has been changed by another user.<br>Please click to save your changes and reload the updates.",
|
||||
"Common.UI.ThemeColorPalette.textRecentColors": "Recent Colors",
|
||||
"Common.UI.ThemeColorPalette.textStandartColors": "Standard Colors",
|
||||
"Common.UI.ThemeColorPalette.textThemeColors": "Theme Colors",
|
||||
"Common.UI.Themes.txtThemeClassicLight": "Classic Light",
|
||||
|
|
|
@ -270,6 +270,7 @@
|
|||
"Common.UI.SearchDialog.txtBtnReplaceAll": "Replace All",
|
||||
"Common.UI.SynchronizeTip.textDontShow": "Don't show this message again",
|
||||
"Common.UI.SynchronizeTip.textSynchronize": "The document has been changed by another user.<br>Please click to save your changes and reload the updates.",
|
||||
"Common.UI.ThemeColorPalette.textRecentColors": "Recent Colors",
|
||||
"Common.UI.ThemeColorPalette.textStandartColors": "Standard Colors",
|
||||
"Common.UI.ThemeColorPalette.textThemeColors": "Theme Colors",
|
||||
"Common.UI.Themes.txtThemeClassicLight": "Classic Light",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
"Common.UI.SearchDialog.txtBtnReplaceAll": "Replace All",
|
||||
"Common.UI.SynchronizeTip.textDontShow": "Don't show this message again",
|
||||
"Common.UI.SynchronizeTip.textSynchronize": "The document has been changed by another user.<br>Please click to save your changes and reload the updates.",
|
||||
"Common.UI.ThemeColorPalette.textRecentColors": "Recent Colors",
|
||||
"Common.UI.ThemeColorPalette.textStandartColors": "Standard Colors",
|
||||
"Common.UI.ThemeColorPalette.textThemeColors": "Theme Colors",
|
||||
"Common.UI.Themes.txtThemeClassicLight": "Classic Light",
|
||||
|
|
Loading…
Reference in a new issue