diff options
| author | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-07-15 14:19:07 +0530 |
|---|---|---|
| committer | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-07-15 14:19:07 +0530 |
| commit | 21e3d7cdc49fb2bf700ae8a0baa2d54cb39ac4c4 (patch) | |
| tree | ae1eed5eec3568ed0745e5d3a9d6ffb69c2d5532 | |
| parent | 670710b88eb596ab9f6e8587de3d43ac133c0e18 (diff) | |
[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
| -rw-r--r-- | addons/mail/static/src/js/mail_followers.js | 1 | ||||
| -rw-r--r-- | addons/mail/static/src/xml/mail_followers.xml | 2 |
2 files changed, 2 insertions, 1 deletions
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 @@ <div t-name="mail.followers.partner" class='oe_partner'> <img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record[2].avatar_url}"/> <a t-attf-href="#model=res.partner&id=#{record[0]}" t-att-title="record[1]"><t t-esc="record[1]"/></a> - <img t-if="record[2].is_editable" class="oe_edit_subtype hidden" t-att-src='_s + "/mail/static/src/img/icon-edit.gif"' title="Edit Subtype" t-att-data-id="record[0]"/> + <img t-if="record[2].is_editable and (widget.records_length > 1)" class="oe_edit_subtype hidden" t-att-src='_s + "/mail/static/src/img/icon-edit.gif"' title="Edit Subtype" t-att-data-id="record[0]"/> <span t-if="widget.view_is_editable" class="oe_remove_follower oe_e" title="Remove this follower" t-att-data-id="record[0]">X</span> </div> |
