diff --git a/page-logic/status.php b/page-logic/status.php index 1958160281fa1e0b5c8572a68e2603d2c4cc1ca6..cc187f6550a7f7f3109bcb69c0456f8ced81adc1 100644 --- a/page-logic/status.php +++ b/page-logic/status.php @@ -163,4 +163,9 @@ $data = []; $data['participants'] = $participants; $data['votingOnly'] = $votingOnly; $data['candidates'] = $candidates; +if (isset($_GET['problems'])) { + $data['problem_switch'] = 1; +} else { + $data['problem_switch'] = 0; +} echo $twig->render('status.html', $data); diff --git a/templates/status.html b/templates/status.html index bcba572e95838f9e1a855d259887aef93a58ab9e..973b24db60bd84083f3cb1a890fca7ba8a8e70f5 100644 --- a/templates/status.html +++ b/templates/status.html @@ -209,5 +209,9 @@ function deselectAll(){ }); }); +if ({{problem_switch}} == 1) { + $('.feed-ok').hide(); + $('#problem_filter').prop('checked', true); +} </script> {% endblock javascripts %}