summaryrefslogtreecommitdiff
path: root/addons/website_mail_channel/static
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2016-02-14 16:12:27 +0100
committerJeremy Kersten <jke@odoo.com>2016-02-14 16:12:30 +0100
commite45edc1912b3952c9cd044e294628f4cbaa9fa12 (patch)
tree15920cc2d9f11c895ee7137daa779fa110934668 /addons/website_mail_channel/static
parentee42be5921ba61d7efdde148ce9bc1d9e0e4075f (diff)
[FIX] website_mail_channel: Impossible to subscribe to forum_post
Missing from previous commit 503824184cb7e78c2ab3c87c87d0127c996928b4
Diffstat (limited to 'addons/website_mail_channel/static')
-rw-r--r--addons/website_mail_channel/static/src/js/website_mail_channel.snippet.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_mail_channel/static/src/js/website_mail_channel.snippet.js b/addons/website_mail_channel/static/src/js/website_mail_channel.snippet.js
index 9bdb292d5d3..8a872783e5e 100644
--- a/addons/website_mail_channel/static/src/js/website_mail_channel.snippet.js
+++ b/addons/website_mail_channel/static/src/js/website_mail_channel.snippet.js
@@ -87,7 +87,7 @@ animation.registry.follow_alias = animation.Class.extend({
$('.js_follow_btn').on('click', function (ev) {
- if ($(ev.currentTarget).closest('.js_mg_follow_form')) {
+ if ($(ev.currentTarget).closest('.js_mg_follow_form').length) {
$('.js_follow_email').val($(ev.currentTarget).closest('.js_mg_follow_form').find('.js_follow_email').val());
}
});