[IMP]improve code

bzr revid: sgo@tinyerp.com-20120907121258-r48mymwh9yvxlrqi
This commit is contained in:
Sanjay Gohel (Open ERP)
2012-09-07 17:42:58 +05:30
parent 6977a13649
commit 033ddaa534
+3 -2
View File
@@ -117,8 +117,9 @@ openerp_mail_followers = function(session, mail) {
follower_read.then(function (follower_record){
if(follower_record.length != 0){
_(follower_record[0].subtype_ids).each(function (subtype_id){
if(self.$el.find('.oe_msg_subtype_check[id=' + subtype_id + ']')[0]){
self.$el.find('.oe_msg_subtype_check[id=' + subtype_id + ']')[0].checked=true}
var subtype_check = self.$el.find('.oe_msg_subtype_check[id=' + subtype_id + ']')
if(subtype_check.length > 0){
subtype_check[0].checked=true}
});
}
})