diff options
Diffstat (limited to 'addons/web_editor/static/src/js/common/utils.js')
| -rw-r--r-- | addons/web_editor/static/src/js/common/utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/js/common/utils.js b/addons/web_editor/static/src/js/common/utils.js index 6600abc6aaa..912b4717c69 100644 --- a/addons/web_editor/static/src/js/common/utils.js +++ b/addons/web_editor/static/src/js/common/utils.js @@ -1,7 +1,7 @@ odoo.define('web_editor.utils', function (require) { 'use strict'; -const ColorpickerDialog = require('web.ColorpickerDialog'); +const {ColorpickerWidget} = require('web.Colorpicker'); /** * window.getComputedStyle cannot work properly with CSS shortcuts (like @@ -121,8 +121,8 @@ function _getNumericAndUnit(value) { */ function _areCssValuesEqual(value1, value2, cssProp, $target) { // If not colors, they will be left untouched - value1 = ColorpickerDialog.normalizeCSSColor(value1); - value2 = ColorpickerDialog.normalizeCSSColor(value2); + value1 = ColorpickerWidget.normalizeCSSColor(value1); + value2 = ColorpickerWidget.normalizeCSSColor(value2); // String comparison first if (value1 === value2) { |
