Browse Source

[FIX] out of the loop when found needed block

pull/9/head
x620 9 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() { destroy: function() {
var result = this._super.apply(this, arguments); var result = this._super.apply(this, arguments);
$('.oe_leftbar .oe_secondary_menu').each(function(){ $('.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); $('.oe_leftbar').toggle(true);
}
return false; return false;
} }
}); });

Loading…
Cancel
Save