From fe62c45e70be52c823ec2d2a931b6e2979882368 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Wed, 23 Jan 2019 16:31:57 +0000 Subject: [PATCH] [FIX] website_forum: use same dom for all icon Before this commit we try to imitate the btn with the form (eg. flag button) But if you style in a theme your button and not the form (like odoo.com) you will see a difference between the 4 icons. --- addons/website_forum/static/src/js/website_forum.js | 2 +- addons/website_forum/views/website_forum.xml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index e79dd72ccea..10abaf4c24a 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -261,7 +261,7 @@ sAnimations.registry.websiteForum = sAnimations.Class.extend({ ev.preventDefault(); var $link = $(ev.currentTarget); this._rpc({ - route: $link.data('href') || ($link.attr('href') !== '#' && $link.attr('href')) || $link.attr('action'), + route: $link.data('href') || ($link.attr('href') !== '#' && $link.attr('href')) || $link.closest('form').attr('action'), }).then(function (data) { if (data.error) { var $warning; diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index dd7de7063d6..bfd79d90749 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -756,11 +756,14 @@ - + + + Flag + + + + +