Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Waleed-Mujahid committed Dec 9, 2024
1 parent 7872a99 commit 5895353
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lms/static/js/dashboard/legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,10 @@
method: 'GET',
dataType: 'json'
});
if (coursePaymentUrl.has_user_paid) {
$('#unenroll_form .submit-button').prop('disabled', true);
}
request.success(function(data, textStatus, xhr) {
$('#unenroll_form .submit-button').prop('disabled', data.has_user_paid);
if (xhr.status === 200) {
dialogMessageAttr = setDialogAttributes(certNameLong, courseNumber, courseName, enrollmentMode, coursePaymentUrl.has_user_paid);
dialogMessageAttr = setDialogAttributes(certNameLong, courseNumber, courseName, enrollmentMode, data.has_user_paid);

$('#track-info').empty();
$('#refund-info').empty();
Expand Down

0 comments on commit 5895353

Please sign in to comment.