[FIX] now completely hides the chatter when in create mode
bzr revid: nicolas.vanhoren@openerp.com-20120726121550-8cybfzmcmqh3t8yg
This commit is contained in:
parent
13c7eb084f
commit
9c48f56020
|
@ -846,7 +846,12 @@ openerp.mail = function(session) {
|
|||
|
||||
start: function() {
|
||||
var self = this;
|
||||
this._super.apply(this, arguments);
|
||||
|
||||
// NB: all the widget should be modified to check the actual_mode property on view, not use
|
||||
// any other method to know if the view is in create mode anymore
|
||||
this.view.on("change:actual_mode", this, this._check_visibility);
|
||||
this._check_visibility();
|
||||
|
||||
mail.ChatterUtils.bind_events(this);
|
||||
this.$element.find('button.oe_mail_button_followers').click(function () { self.do_toggle_followers(); });
|
||||
if (! this.params.see_subscribers_options) {
|
||||
|
@ -860,6 +865,10 @@ openerp.mail = function(session) {
|
|||
this.reinit();
|
||||
},
|
||||
|
||||
_check_visibility: function() {
|
||||
this.$element.toggle(this.view.get("actual_mode") !== "create");
|
||||
},
|
||||
|
||||
destroy: function () {
|
||||
this._super.apply(this, arguments);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue