Merge pull request #1292 from ONLYOFFICE/fix/bugfix
[SSE] Fix Bug 53565
This commit is contained in:
commit
0abcf31915
|
@ -274,14 +274,18 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
|
||||||
if (levelProps) {
|
if (levelProps) {
|
||||||
var levelColors = (levelSort==Asc.c_oAscSortOptions.ByColorFill) ? levelProps.asc_getColorsFill() : levelProps.asc_getColorsFont();
|
var levelColors = (levelSort==Asc.c_oAscSortOptions.ByColorFill) ? levelProps.asc_getColorsFill() : levelProps.asc_getColorsFont();
|
||||||
levelColors.forEach(function(item, index) {
|
levelColors.forEach(function(item, index) {
|
||||||
if (item)
|
if (item) {
|
||||||
|
var value = Common.Utils.ThemeColor.getHexColor(item.get_r(), item.get_g(), item.get_b()).toLocaleUpperCase();
|
||||||
color_data.push({
|
color_data.push({
|
||||||
value: Common.Utils.ThemeColor.getHexColor(item.get_r(), item.get_g(), item.get_b()).toLocaleUpperCase(),
|
value: value,
|
||||||
displayValue: '',
|
displayValue: '',
|
||||||
color: item
|
color: item,
|
||||||
|
styleObj: {'background-color': '#' + value},
|
||||||
|
styleStr: 'background-color: #' + value + ';'
|
||||||
});
|
});
|
||||||
else
|
} else
|
||||||
color_data.unshift({ value: -1, displayValue: (levelSort==Asc.c_oAscSortOptions.ByColorFill) ? me.textNone : me.textAuto , color: null});
|
color_data.unshift({ value: -1, displayValue: (levelSort==Asc.c_oAscSortOptions.ByColorFill) ? me.textNone : me.textAuto , color: null,
|
||||||
|
styleObj: {'background-color': 'transparent' }, styleStr: 'background-color:transparent;'});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue