Commit f825b38a authored by jaapjansma's avatar jaapjansma
Browse files

Layout of date filter.

parent 7143672a
......@@ -2,6 +2,7 @@
* Improvement of the layout of the relationship output handler.
* Add link from the participant count field.
* Layout of date filter.
# Version 1.38
......
......@@ -26,4 +26,21 @@
</td>
</tr>
{literal}
<script type="text/javascript">
CRM.$(function($) {
cj("#{/literal}{$fieldOp}{literal}").change(function() {
var val = $(this).val();
if (val == 'bw' || val == 'nbw') {
cj("#{/literal}{$filterMin}_max_cell{literal}").removeClass('hiddenElement');
cj("#{/literal}{$filterMin}_cell{literal}").addClass('hiddenElement');
} else {
cj("#{/literal}{$filterMin}_max_cell{literal}").addClass('hiddenElement');
cj("#{/literal}{$filterMin}_cell{literal}").removeClass('hiddenElement');
}
}).change();
});
</script>
{/literal}
{/crmScope}
......@@ -29,6 +29,14 @@
CRM.$(function($) {
cj("#{/literal}{$fieldOp}{literal}").change(function() {
var val = $(this).val();
if (val == 'bw' || val == 'nbw') {
cj("#{/literal}{$filterMin}_max_cell{literal}").removeClass('hiddenElement');
cj("#{/literal}{$filterMin}_cell{literal}").addClass('hiddenElement');
} else {
cj("#{/literal}{$filterMin}_max_cell{literal}").addClass('hiddenElement');
cj("#{/literal}{$filterMin}_cell{literal}").removeClass('hiddenElement');
}
if (val == 'current_user' || val == 'null' || val == 'not null') {
cj("#{/literal}{$filterVal}{literal}").addClass('hiddenElement');
} else {
......
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