[MERGE] from openobject-addons/trunk-openchatter-DOM-chm
bzr revid: chm@openerp.com-20121019114513-64544zwvgq0oo5xm
This commit is contained in:
commit
50a9aead4e
|
@ -400,11 +400,14 @@ openerp.mail = function(session) {
|
|||
|
||||
} else if(!this.stay_open){
|
||||
|
||||
this.$render_expandable.hide();
|
||||
if(this.datasets.show_compact) {
|
||||
this.$render_compact.show();
|
||||
} else {
|
||||
this.$render_compact.hide();
|
||||
// do not close the box if there are some text
|
||||
if(!this.$render_expandable.find('textarea').val().match(/\S+/)){
|
||||
this.$render_expandable.hide();
|
||||
if(this.datasets.show_compact) {
|
||||
this.$render_compact.show();
|
||||
} else {
|
||||
this.$render_compact.hide();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue