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)')