Skip to content

Commit

Permalink
Fixed bug where the transcription form wasn't properly unlocked when …
Browse files Browse the repository at this point in the history
…OCR completes (#2487)
  • Loading branch information
joshuastegmaier authored Aug 12, 2024
1 parent 67a00c7 commit 7b4d1af
Showing 1 changed file with 7 additions and 7 deletions.
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 7b4d1af

Please sign in to comment.