diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css
index bfae7571a9c..090a7ac0924 100644
--- a/addons/mail/static/src/css/mail.css
+++ b/addons/mail/static/src/css/mail.css
@@ -576,7 +576,7 @@
.openerp .oe_followers button.oe_follower{
display: block;
text-align: center;
- width:100%;
+ width:135px;
}
.openerp .oe_followers button.oe_follower.oe_following{
color: white;
diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js
index 938d6a01f6d..a058f453639 100644
--- a/addons/mail/static/src/js/mail_followers.js
+++ b/addons/mail/static/src/js/mail_followers.js
@@ -246,7 +246,7 @@ openerp_mail_followers = function(session, mail) {
if (user_pid) {
dialog = true;
} else {
- var subtype_list_ul = this.$('.oe_subtype_list').empty();
+ var subtype_list_ul = this.$('.oe_subtype_list ul').empty();
if (! this.message_is_follower) return;
}
var id = this.view.datarecord.id;
@@ -261,9 +261,8 @@ openerp_mail_followers = function(session, mail) {
var $list = self.$dialog;
}
else {
- var $list = this.$('.oe_subtype_list');
+ var $list = this.$('.oe_subtype_list ul');
}
- $list.empty().hide();
var records = data[id].message_subtype_data;
this.records_length = $.map(records, function(value, index) { return index; }).length;
if (this.records_length > 1) { self.display_followers(); }
@@ -272,9 +271,6 @@ openerp_mail_followers = function(session, mail) {
record.followed = record.followed || undefined;
$(session.web.qweb.render('mail.followers.subtype', {'record': record})).appendTo($list);
});
- if (_.size(records) > 1) {
- $list.show();
- }
},
do_follow: function () {
diff --git a/addons/mail/static/src/xml/mail_followers.xml b/addons/mail/static/src/xml/mail_followers.xml
index a936b8237d6..2aa27a6bc27 100644
--- a/addons/mail/static/src/xml/mail_followers.xml
+++ b/addons/mail/static/src/xml/mail_followers.xml
@@ -5,17 +5,23 @@
followers main template
Template used to display the followers, the actions and the subtypes in a record.
-->
-
+
-
+
+
+
+
+
+
-
Followers
@@ -40,12 +46,14 @@
Template used to display message subtypes of a follower subscription
-->
-
+
+
+