summaryrefslogtreecommitdiff
path: root/addons/website_mail_group/static/src/js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-06-19 09:33:36 +0200
committerThibault Delavallée <tde@openerp.com>2014-06-19 09:33:36 +0200
commitb07b8a5b1fc0773d4dbbaf13dba4ed0d4a3ae3d6 (patch)
treecb0910af1bc15a74bb592a7be961804f94df3c27 /addons/website_mail_group/static/src/js
parent8d282f3b4fa0494cc26f3c10535f17b0feb2b1cd (diff)
[FIX] website_mail: restored follow JS code that was wrongly merged with the mail group follow snippet. Now both widget animation exists, the second being more complex and therefore requiring a different animation.
Diffstat (limited to 'addons/website_mail_group/static/src/js')
-rw-r--r--addons/website_mail_group/static/src/js/website_mail_group.snippet.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_mail_group/static/src/js/website_mail_group.snippet.js b/addons/website_mail_group/static/src/js/website_mail_group.snippet.js
index fd6a2d38cfa..8ad4f9ba796 100644
--- a/addons/website_mail_group/static/src/js/website_mail_group.snippet.js
+++ b/addons/website_mail_group/static/src/js/website_mail_group.snippet.js
@@ -3,8 +3,8 @@
var website = openerp.website;
- website.snippet.animationRegistry.follow = website.snippet.Animation.extend({
- selector: ".js_follow",
+ website.snippet.animationRegistry.follow_alias = website.snippet.Animation.extend({
+ selector: ".js_follow_alias",
start: function (editable_mode) {
var self = this;
this.is_user = false;
@@ -23,8 +23,8 @@
// not if editable mode to allow designer to edit alert field
if (!editable_mode) {
- $('.js_follow > .alert').addClass("hidden");
- $('.js_follow > .input-group-btn.hidden').removeClass("hidden");
+ $('.js_follow_alias > .alert').addClass("hidden");
+ $('.js_follow_alias > .input-group-btn.hidden').removeClass("hidden");
this.$target.find('.js_follow_btn, .js_unfollow_btn').on('click', function (event) {
event.preventDefault();
self.on_click();