mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] call toggle with a boolean
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user