Skip to content

Commit 2558c80

Browse files
committed
added (experimental) filter-active class to 1.3.x branch
1 parent 24dc596 commit 2558c80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controllers/components/filter.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ function beforeRender(&$controller)
154154
if (isset($this->formData[$fieldModel][$fieldName]))
155155
{
156156
$options['value'] = $this->formData[$fieldModel][$fieldName];
157+
158+
if ($options['value'])
159+
{
160+
$options['class'] = 'filter-active';
161+
}
157162
}
158163
}
159164

0 commit comments

Comments
 (0)