Commit 120bf907 by Tasawer Nawaz Committed by GitHub

Merge pull request #15912 from edx/tasawer/learner-2305/fix-a11y-issues-on-unenroll-dialogbox

Fixed tab issue on unenroll dialog.
parents fa623f3f c47806a8
......@@ -175,7 +175,6 @@
$('#unenroll_form input[type="submit"]').prop('disabled', true);
}
edx.dashboard.dropdown.toggleCourseActionsDropdownMenu(event);
});
request.fail(function() {
$('#unenroll_error').text(
......@@ -185,9 +184,9 @@
.css('display', 'block');
$('#unenroll_form input[type="submit"]').prop('disabled', true);
edx.dashboard.dropdown.toggleCourseActionsDropdownMenu(event);
});
edx.dashboard.dropdown.toggleCourseActionsDropdownMenu(event);
$('#unenroll-modal').css('position', 'fixed');
});
......@@ -223,7 +222,8 @@
});
$('.action-unenroll').each(function(index) {
// a bit of a hack, but gets the unique selector for the modal trigger
$(this).attr('id', 'unenroll-' + index);
// a bit of a hack, but gets the unique selector for the modal trigger
var trigger = '#' + $(this).attr('id');
accessibleModal(
trigger,
......@@ -231,7 +231,6 @@
'#unenroll-modal',
'#dashboard-main'
);
$(this).attr('id', 'unenroll-' + index);
});
$('#unregister_block_course').click(function(event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment