Commit c47806a8 by tasawernawaz

Fixed tab issue on unenroll dialog

LEARNER-2305
parent 0c204e35
...@@ -175,7 +175,6 @@ ...@@ -175,7 +175,6 @@
$('#unenroll_form input[type="submit"]').prop('disabled', true); $('#unenroll_form input[type="submit"]').prop('disabled', true);
} }
edx.dashboard.dropdown.toggleCourseActionsDropdownMenu(event);
}); });
request.fail(function() { request.fail(function() {
$('#unenroll_error').text( $('#unenroll_error').text(
...@@ -185,9 +184,9 @@ ...@@ -185,9 +184,9 @@
.css('display', 'block'); .css('display', 'block');
$('#unenroll_form input[type="submit"]').prop('disabled', true); $('#unenroll_form input[type="submit"]').prop('disabled', true);
edx.dashboard.dropdown.toggleCourseActionsDropdownMenu(event);
}); });
edx.dashboard.dropdown.toggleCourseActionsDropdownMenu(event);
$('#unenroll-modal').css('position', 'fixed'); $('#unenroll-modal').css('position', 'fixed');
}); });
...@@ -223,7 +222,8 @@ ...@@ -223,7 +222,8 @@
}); });
$('.action-unenroll').each(function(index) { $('.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'); var trigger = '#' + $(this).attr('id');
accessibleModal( accessibleModal(
trigger, trigger,
...@@ -231,7 +231,6 @@ ...@@ -231,7 +231,6 @@
'#unenroll-modal', '#unenroll-modal',
'#dashboard-main' '#dashboard-main'
); );
$(this).attr('id', 'unenroll-' + index);
}); });
$('#unregister_block_course').click(function(event) { $('#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