Browse Source

[FIX] call toggle with a boolean

pull/29/head
Holger Brunn 10 years ago
parent
commit
e39fd7498a
  1. 4
      advanced_filters/static/src/js/advanced_filters.js

4
advanced_filters/static/src/js/advanced_filters.js

@ -49,11 +49,11 @@ openerp.advanced_filters = function(instance)
{ {
$e.find('a[data-index="0"],a[data-index="1"],' + $e.find('a[data-index="0"],a[data-index="1"],' +
'a[data-index="2"],a[data-index="3"]') 'a[data-index="2"],a[data-index="3"]')
.parent().toggle(ids.length);
.parent().toggle(ids.length > 0);
} }
else else
{ {
$e.toggle(ids.length);
$e.toggle(ids.length > 0);
} }
}); });
} }

Loading…
Cancel
Save