[FIX] call toggle with a boolean

This commit is contained in:
Holger Brunn
2014-07-29 11:44:28 +02:00
parent 85b9ce07d4
commit e39fd7498a

View File

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