summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2019-01-23 16:31:57 +0000
committerJeremy Kersten <jke@odoo.com>2019-01-23 16:35:32 +0000
commitfe62c45e70be52c823ec2d2a931b6e2979882368 (patch)
treec365555ec89bc7439ff560405cce56372ad3f814 /addons/website_forum/static/src
parentc2b4ff9d4ead8e92027d9d3085e68bb1249da011 (diff)
[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.
Diffstat (limited to 'addons/website_forum/static/src')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js2
1 files changed, 1 insertions, 1 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;