[DE] Fix Bug 40345

This commit is contained in:
Julia Radzhabova 2019-01-31 15:22:55 +03:00
parent 9dcf478ef9
commit 703be670ab

View file

@ -1682,16 +1682,16 @@ define([
},
onNoControlsColor: function(item) {
this.api.asc_SetGlobalContentControlShowHighlight(!item.isChecked());
if (!item.isChecked())
this.api.asc_SetGlobalContentControlHighlightColor(220, 220, 220);
this.api.asc_SetGlobalContentControlShowHighlight(true, 220, 220, 220);
else
this.api.asc_SetGlobalContentControlShowHighlight(false);
},
onSelectControlsColor: function(picker, color) {
var clr = Common.Utils.ThemeColor.getRgbColor(color);
if (this.api) {
this.api.asc_SetGlobalContentControlShowHighlight(true);
this.api.asc_SetGlobalContentControlHighlightColor(clr.get_r(), clr.get_g(), clr.get_b());
this.api.asc_SetGlobalContentControlShowHighlight(true, clr.get_r(), clr.get_g(), clr.get_b());
}
Common.component.Analytics.trackEvent('ToolBar', 'Content Controls Color');