Skip to content

Commit

Permalink
[FIX] website: restore blog & event cover properties options editing
Browse files Browse the repository at this point in the history
Changing the filter color and its intensity was not working anymore
because of failed JS refactoring when the logic was shared for both
blog posts and events in website.

closes odoo#40217

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
  • Loading branch information
qsm-odoo committed Nov 13, 2019
1 parent 3c4133d commit 3296468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/website/static/src/js/editor/snippets.options.js
Original file line number Diff line number Diff line change
Expand Up @@ -1788,12 +1788,12 @@ options.registry.CoverProperties = options.Class.extend({
this.$filterColorOpts.removeClass('active');

var activeFilterValue = this.$filterValueOpts
.filter(el => {
.filter((i, el) => {
return (parseFloat($(el).data('filterValue')).toFixed(1) === parseFloat(this.$filter.css('opacity')).toFixed(1));
}).addClass('active').data('filterValue');

var activeFilterColor = this.$filterColorOpts
.filter(el => {
.filter((i, el) => {
return this.$filter.hasClass($(el).data('filterColor'));
}).addClass('active').data('filterColor');

Expand Down

0 comments on commit 3296468

Please sign in to comment.