From 21e3d7cdc49fb2bf700ae8a0baa2d54cb39ac4c4 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Mon, 15 Jul 2013 14:19:07 +0530 Subject: [PATCH] [IMP] 2 little improvements when their is no subtype than no edit_subtype pencil will be visible and bydefault set the message_is_follower to false because when no followers are there than subtypes muzt not be visible. bzr revid: psa@tinyerp.com-20130715084907-nrd2oileuyr30nep --- addons/mail/static/src/js/mail_followers.js | 1 + addons/mail/static/src/xml/mail_followers.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js index 4fec4ff3fd3..19b001f45a8 100644 --- a/addons/mail/static/src/js/mail_followers.js +++ b/addons/mail/static/src/js/mail_followers.js @@ -193,6 +193,7 @@ openerp_mail_followers = function(session, mail) { /** Display the followers */ display_followers: function (records) { var self = this; + this.message_is_follower = false; this.followers = records || this.followers; // clean and display title var node_user_list = this.$('.oe_follower_list').empty(); diff --git a/addons/mail/static/src/xml/mail_followers.xml b/addons/mail/static/src/xml/mail_followers.xml index d23154096a6..7628cdae7da 100644 --- a/addons/mail/static/src/xml/mail_followers.xml +++ b/addons/mail/static/src/xml/mail_followers.xml @@ -31,7 +31,7 @@
- + X