[IMP] mail_followers: hide hr when there are no subtype

bzr revid: chm@openerp.com-20130108162130-e390u7s1duf3yj3r
This commit is contained in:
Christophe Matthieu
2013-01-08 17:21:30 +01:00
parent 161caa2c0e
commit c46be224e6
@@ -221,11 +221,14 @@ openerp_mail_followers = function(session, mail) {
var nb_subtype = 0;
_(records).each(function (record) {nb_subtype++;});
if (nb_subtype > 1) {
this.$('hr').show();
_(records).each(function (record, record_name) {
record.name = record_name;
record.followed = record.followed || undefined;
$(session.web.qweb.render('mail.followers.subtype', {'record': record})).appendTo( self.$('.oe_subtype_list') );
});
} else {
this.$('hr').hide();
}
},