Commit ee4f4594 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #571 from Raz0r/patch-4

hide apply button if no filters
parents e35e9015 0e5eca94
......@@ -29,8 +29,13 @@ var AdminFilters = function(element, filtersElement, filterGroups) {
function removeFilter() {
$(this).closest('tr').remove();
$('button', $root).show();
if($('.filters tr').length == 0) {
$('button', $root).hide();
$('a[class=btn]', $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