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
  • Loading branch information
joshuastegmaier committed Aug 9, 2024
1 parent c93ec4c commit 5099a87
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 5099a87

Please sign in to comment.