From c611d92191f9bbb901874af825130bfa60004002 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 16 Oct 2019 14:01:30 +0000 Subject: [PATCH] [REF] website, *: remove useless palette title option Not relevant anymore in the new editor UI. Part of https://github.com/odoo/odoo/pull/38959 task-2066614 --- .../static/src/js/editor/snippets.options.js | 4 ---- addons/website/views/snippets.xml | 16 +++++----------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 9cc1d080bda..ebac0631acc 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -672,10 +672,6 @@ registry.colorpicker = SnippetOption.extend({ if (this.data.paletteExclude) { excluded = this.data.paletteExclude.replace(/ /g, '').split(','); } - // Apply a custom title if specified - if (this.data.paletteTitle) { - $pt.find('.note-palette-title').text(this.data.paletteTitle); - } // Remove excluded palettes _.each(excluded, function (exc) { diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 214a60cf28d..f88734daa8b 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -984,8 +984,7 @@
+ data-target=".card"> Color @@ -997,8 +996,7 @@ data-selector=".s_hr" data-target="hr" data-color-prefix="border-" - data-palette-exclude="transparent_grayscale, common" - data-palette-title="Separator Color"> + data-palette-exclude="transparent_grayscale, common"> Color @@ -1007,8 +1005,7 @@
+ data-selector=".s_card, .accordion .card"> Color @@ -1018,8 +1015,7 @@
+ data-color-prefix="alert-"> Color @@ -1346,8 +1342,7 @@
+ data-palette-default="transparent_grayscale"> Filter @@ -1419,7 +1414,6 @@ data-selector="[data-main-object^='website.page('] #wrapwrap > header" data-palette-exclude="theme,common" data-palette-default="transparent_grayscale" - data-palette-title="Top Menu Color" data-no-check="true"> Background Color