From f9516c10923e16a42d5174a6922c15605e50e128 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 5 Oct 2022 13:02:05 +0000 Subject: [PATCH] tristans suggestion to clean up FF bug --- .../riot/competitions/detail/submission_manager.tag | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/static/riot/competitions/detail/submission_manager.tag b/src/static/riot/competitions/detail/submission_manager.tag index 3ec95f8e4..0dd92d7d2 100644 --- a/src/static/riot/competitions/detail/submission_manager.tag +++ b/src/static/riot/competitions/detail/submission_manager.tag @@ -78,7 +78,7 @@ -
+
@@ -399,12 +399,12 @@ } } + self.on_submission_checked = function(event){ + event.stopPropagation() + self.submission_checked() + } + self.submission_checked = function () { - if (typeof(event) === "object" ){ - // We can't stop upon page load as there is no "event" (button click). - // We can when we we check the checkboxes as that is an "event". - event.stopPropagation() - } let inputs = $(self.refs.submission_table).find('input') let checked_boxes = inputs.not(':first').filter('input:checked') let unchecked_boxes = inputs.not(':first').filter('input:not(:checked)')