Skip to content

Commit

Permalink
chore: fix quality
Browse files Browse the repository at this point in the history
  • Loading branch information
viadanna committed Sep 26, 2024
1 parent 55af5a0 commit 15148c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions openassessment/xblock/static/js/src/lms/oa_response.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,17 @@ export class ResponseView {
// Override default form submission
eventObject.preventDefault();
$('.submission__answer__display__file', view.element).removeClass('is--hidden');
uploadButton.prop("disabled", true);
spinner.removeClass("hidden");
uploadButton.prop('disabled', true);
spinner.removeClass('hidden');
if (view.hasAllUploadFiles()) {
const promise = view.uploadFiles();
promise.then(() => {
uploadButton.prop("disabled", false);
spinner.addClass("hidden");
uploadButton.prop('disabled', false);
spinner.addClass('hidden');
});
} else {
uploadButton.prop("disabled", false);
spinner.addClass("hidden");
uploadButton.prop('disabled', false);
spinner.addClass('hidden');
}
},
);
Expand Down

0 comments on commit 15148c5

Please sign in to comment.