Commit d755e0ad authored by Raz0r's avatar Raz0r

hide apply button if no filters

If you create new filters, then delete all of them, apply button will not hide
parent a35fd2e0
......@@ -29,8 +29,12 @@ var AdminFilters = function(element, filtersElement, filterGroups) {
function removeFilter() {
$(this).closest('tr').remove();
$('button', $root).show();
if($('.filters tr').length == 0) {
$('button', $root).hide();
} else {
$('button', $root).show();
}
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment