Browse Source

[FIX] out of the loop when found needed block

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

4
mail_base/static/src/js/base.js

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

Loading…
Cancel
Save