[IMP] mail_followers: fix invite button, hidden subtype if only one
bzr revid: chm@openerp.com-20130313161510-kkis63zaoc3yb6kz
This commit is contained in:
parent
46893a182a
commit
d80d18ff1b
|
@ -548,8 +548,6 @@
|
|||
.openerp .oe_followers button.oe_invite{
|
||||
margin: 5px 0;
|
||||
padding: 2px 8px;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
font-size: 12px;
|
||||
text-shadow: none;
|
||||
width: 100%
|
||||
|
|
|
@ -217,13 +217,17 @@ openerp_mail_followers = function(session, mail) {
|
|||
/** Display subtypes: {'name': default, followed} */
|
||||
display_subtypes:function (data, id) {
|
||||
var self = this;
|
||||
this.$('.oe_subtype_list').empty();
|
||||
var $list = this.$('.oe_subtype_list');
|
||||
$list.empty().hide();
|
||||
var records = data[this.view.datarecord.id || this.view.dataset.ids[0]].message_subtype_data;
|
||||
_(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') );
|
||||
});
|
||||
if (_.size(records) > 1) {
|
||||
$list.show();
|
||||
}
|
||||
},
|
||||
|
||||
do_follow: function () {
|
||||
|
|
Loading…
Reference in New Issue