Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/static/riot/competitions/detail/submission_manager.tag
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand Down
1 change: 1 addition & 0 deletions src/tests/functional/test_competitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down