Skip to content
Snippets Groups Projects
Commit a9096228 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 1970f66b
No related branches found
No related tags found
No related merge requests found
...@@ -107,9 +107,7 @@ $(document) ...@@ -107,9 +107,7 @@ $(document)
// Submit only if value has changed and either enter was pressed or // Submit only if value has changed and either enter was pressed or
// select was opened by click // select was opened by click
if (!is_default && shouldSubmit) { if (!is_default && shouldSubmit) {
$(this) $(this.form).submit();
.closest('form')
.submit();
return false; 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