[IMP]:reverted default to display subcribe method
authorAmit Patel (OpenERP) <apa@tinyerp.com>
Tue, 28 Aug 2012 10:05:06 +0000 (15:35 +0530)
committerAmit Patel (OpenERP) <apa@tinyerp.com>
Tue, 28 Aug 2012 10:05:06 +0000 (15:35 +0530)
bzr revid: apa@tinyerp.com-20120828100506-7o73f6sh6gcbeq7p

addons/mail/static/src/js/mail_followers.js
addons/mail/static/src/xml/mail_followers.xml

index bc21971..4a328fb 100644 (file)
@@ -101,6 +101,7 @@ openerp_mail_followers = function(session, mail) {
         display_subscribers: function (records) {
             var self = this;
             this.is_subscriber = false;
+            if (self.view.get("actual_mode") === "edit"){self.update_subtype();}
             var user_list = this.$el.find('ul.oe_mail_followers_display').empty();
             this.$el.find('div.oe_mail_recthread_followers h4').html(this.params.title + ' (' + records.length + ')');
             _(records).each(function (record) {
@@ -129,7 +130,6 @@ openerp_mail_followers = function(session, mail) {
         // Display the subtypes of each records.
         display_subtype: function(records) {
             var self = this
-            if (self.view.get("actual_mode") === "edit"){self.update_subtype();}
             var subtype_list = this.$el.find('div.oe_mail_recthread_subtype').empty();
             var follower_ids = this.follower_model.call('search',[[['res_model','=',this.ds_model.model],['res_id','=',this.view.datarecord.id],['user_id','=',this.session.uid]]])
             follower_ids.then(function (record){
index d307aff..b0e19e5 100644 (file)
@@ -40,7 +40,7 @@
                     <a t-attf-href="#model=mail.message.subtype&amp;id=#{record.id}"><t t-raw="record.name"/></a>
                 </td>
                 <td width="10%">
-                    <t t-if ="record.default"><input type="checkbox" t-att-id="record.id" t-att-name="record.name"  checked="" class="oe_msg_subtype_check" disabled="disabled"/></t>
+                    <t t-if ="record.default"><input type="checkbox" t-att-id="record.id" t-att-name="record.name"  checked="true" class="oe_msg_subtype_check" disabled="disabled"/></t>
                     <t t-if ="! record.default"><input type="checkbox" t-att-id="record.id" t-att-name="record.name"  class="oe_msg_subtype_check"/></t>
                 </td>
             </tr>