Browse Source

[FIX] Hiding the left panel if there is no menu

pull/9/head
x620 9 years ago
parent
commit
ee7c461fea
  1. 11
      mail_base/static/src/js/base.js

11
mail_base/static/src/js/base.js

@ -77,8 +77,19 @@ ChatAction.include({
var self = this;
return $.when(result).done(function() {
$('.oe_leftbar').toggle(false);
self.searchview.do_search();
});
},
destroy: function() {
var result = this._super.apply(this, arguments);
$('.oe_leftbar .oe_secondary_menu').each(function(){
if ($(this).css('display') == 'block' && $(this).children().length > 0){
$('.oe_leftbar').toggle(true);
return false;
}
});
return result;
}
});

Loading…
Cancel
Save