Skip to content

Commit

Permalink
Merge branch 'main' into CONCD-859-jstegmaier-psycopg
Browse files Browse the repository at this point in the history
  • Loading branch information
jkueloc authored Aug 13, 2024
2 parents f79d1b8 + c6b24b7 commit 9a8bae9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 5 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions concordia/static/js/src/contribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ function setupPage() {
$form.on('submit', function (event) {
event.preventDefault();

var data = $form.data();
var eventData = $form.data();

lockControls($form);
if (data.lockElement) {
lockControls($(data.lockElement));
if (eventData.lockElement) {
lockControls($(eventData.lockElement));
}

var formData = $form.serializeArray();
Expand All @@ -140,8 +140,8 @@ function setupPage() {
$form: $form,
});
unlockControls($form);
if (data.lockElement) {
unlockControls($(data.lockElement));
if (eventData.lockElement) {
unlockControls($(eventData.lockElement));
}
})
.fail(function (jqXHR, textStatus, errorThrown) {
Expand All @@ -163,8 +163,8 @@ function setupPage() {
jqXHR: jqXHR,
});
unlockControls($form);
if (data.lockElement) {
unlockControls($(data.lockElement));
if (eventData.lockElement) {
unlockControls($(eventData.lockElement));
}
}
});
Expand Down

0 comments on commit 9a8bae9

Please sign in to comment.