Browse Source

[FIX] out of the loop when found needed block

pull/9/head
x620 8 years ago
parent
commit
0e9abc8fc4
  1. 8
      mail_base/static/src/js/base.js

8
mail_base/static/src/js/base.js

@ -84,9 +84,11 @@ ChatAction.include({
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;
if ($(this).css('display') == 'block'){
if ($(this).children().length > 0) {
$('.oe_leftbar').toggle(true);
}
return false;
}
});
return result;

Loading…
Cancel
Save