diff options
-rw-r--r-- | templates/web/oxfordshire/my/_problem-list.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/web/oxfordshire/my/_problem-list.html b/templates/web/oxfordshire/my/_problem-list.html index 1365dccd3..e0f16586a 100644 --- a/templates/web/oxfordshire/my/_problem-list.html +++ b/templates/web/oxfordshire/my/_problem-list.html @@ -7,3 +7,17 @@ [% INCLUDE 'reports/_list-entry.html', problem = p, no_fixed =1 %] [% "</ul>" IF loop.last %] [% END %] + +[% IF ! problems.size %] +<!-- Preserve behaviour of map filters despite map not being shown --> +<script type="text/javascript"> + (function($) { + $(function() { + $(".report-list-filters [type=submit]").hide(); + $(".report-list-filters select").change(function() { + $(this).closest("form").submit(); + }); + }) + })(window.jQuery); +</script> +[% END %] |