Form->label(!empty($columns[$key]['label']) ? $columns[$key]['label'] : $key);
@@ -359,7 +359,7 @@
-
+
>
= __d('menu','available.filters') ?>
diff --git a/app/templates/element/javascript.php b/app/templates/element/javascript.php
index edb71822a..31c1fe604 100644
--- a/app/templates/element/javascript.php
+++ b/app/templates/element/javascript.php
@@ -166,10 +166,13 @@
}
// Toggle the submit container rebalance class so long as there are no datetime pickers
- if(!$('.top-filters-fields-dates').length) {
- // Count the number of visible fields, and apply the rebalance class on an odd number
- if($('#top-filters-fields .filter-active').length % 2 == 1) {
- $('#top-filters-submit').addClass("tss-rebalance");
+ if(!$('#top-filters-fields .top-filters-fields-dates').length) {
+ // Count the number of standard visible fields, and apply the rebalance class on an odd number
+ // unless boolean fields are visible - in which case we remove it.
+ let standardFiltersCount = $('#top-filters-fields .filter-standard.filter-active').length;
+ let booleanFiltersCount = $('#top-filters-fields .filter-boolean.filter-active').length;
+ if(standardFiltersCount % 2 == 1 && !booleanFiltersCount) {
+ $('#top-filters-submit').addClass("tss-rebalance");
} else {
$('#top-filters-submit').removeClass("tss-rebalance");
}