diff --git a/src/static/riot/competitions/detail/submission_manager.tag b/src/static/riot/competitions/detail/submission_manager.tag index c371d85d1..3ec95f8e4 100644 --- a/src/static/riot/competitions/detail/submission_manager.tag +++ b/src/static/riot/competitions/detail/submission_manager.tag @@ -400,7 +400,11 @@ } self.submission_checked = function () { - event.stopPropagation() + 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)') diff --git a/src/tests/functional/test_competitions.py b/src/tests/functional/test_competitions.py index 0d293beb0..99c2e34dc 100644 --- a/src/tests/functional/test_competitions.py +++ b/src/tests/functional/test_competitions.py @@ -95,6 +95,7 @@ def test_manual_competition_creation(self): self.find('i[class="add icon"]').click() self.find('input[selenium="title"]').send_keys('Title') self.execute_script('$("textarea[ref=\'content\']")[0].EASY_MDE.value("Testing123")') + sleep(1) self.find('div[selenium="save1"]').click() sleep(1)