[MERGE] from openobject-addons/trunk-openchatter-DOM-chm

bzr revid: chm@openerp.com-20121019114513-64544zwvgq0oo5xm
This commit is contained in:
Christophe Matthieu 2012-10-19 13:45:13 +02:00
commit 50a9aead4e
1 changed files with 8 additions and 5 deletions

View File

@ -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();
}
}
}