Skip to content
Snippets Groups Projects
Commit bc88a272 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

submit the correct form, fixes #1783

Closes #1783

Merge request studip/studip!1167
parent c9115558
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,7 @@ $(document)
// Submit only if value has changed and either enter was pressed or
// select was opened by click
if (!is_default && shouldSubmit) {
$(this)
.closest('form')
.submit();
$(this.form).submit();
return false;
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment