From 227fc6408ddc998529bb1c38222ddba50f40868b Mon Sep 17 00:00:00 2001 From: Kishan Gajjar Date: Fri, 24 Aug 2018 14:40:56 +0530 Subject: [PATCH] [FIX] web_editor: properly allow to reset bg color If resetting a background color was the only edition that was done on a page and that this page was saved, the change was not properly saved as the page was not marked as dirty. Closes https://github.com/odoo/odoo/pull/27625 task-1879524 --- addons/web_editor/static/src/js/snippets.options.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/js/snippets.options.js b/addons/web_editor/static/src/js/snippets.options.js index 1444f404ff6..daceee43eaa 100644 --- a/addons/web_editor/static/src/js/snippets.options.js +++ b/addons/web_editor/static/src/js/snippets.options.js @@ -565,6 +565,7 @@ odoo.define('web_editor.snippets.options', function (require) { this.$el.find('.note-color-reset').on('click', function () { self.$target.removeClass(self.classes); + self.$target.trigger('content_changed'); $colors.removeClass("selected"); }); }