Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
fdadd4cd
Commit
fdadd4cd
authored
Dec 18, 2017
by
Anthony Mangano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a11y issues with unenroll modal
parent
ca46bfcf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
20 deletions
+15
-20
lms/static/js/dashboard/legacy.js
+0
-1
lms/static/js/learner_dashboard/views/entitlement_unenrollment_view.js
+1
-5
lms/static/js/toggle_login_modal.js
+0
-8
lms/templates/dashboard.html
+7
-3
themes/edx.org/lms/templates/dashboard.html
+7
-3
No files found.
lms/static/js/dashboard/legacy.js
View file @
fdadd4cd
...
...
@@ -188,7 +188,6 @@
$
(
'#unenroll_form input[type="submit"]'
).
prop
(
'disabled'
,
true
);
});
edx
.
dashboard
.
dropdown
.
toggleCourseActionsDropdownMenu
(
event
);
$
(
'#unenroll-modal'
).
css
(
'position'
,
'fixed'
);
});
...
...
lms/static/js/learner_dashboard/views/entitlement_unenrollment_view.js
View file @
fdadd4cd
...
...
@@ -52,11 +52,7 @@
this
.
resetModal
();
this
.
setHeaderText
(
courseName
,
courseNumber
);
this
.
setSubmitData
(
apiEndpoint
);
if
(
window
.
edx
&&
window
.
edx
.
dashboard
&&
window
.
edx
.
dashboard
.
dropdown
)
{
window
.
edx
.
dashboard
.
dropdown
.
toggleCourseActionsDropdownMenu
(
event
);
this
.
$el
.
css
(
'position'
,
'fixed'
);
}
this
.
$el
.
css
(
'position'
,
'fixed'
);
},
handleSubmit
:
function
()
{
...
...
lms/static/js/toggle_login_modal.js
View file @
fdadd4cd
...
...
@@ -86,14 +86,6 @@
$
(
modal_id
).
show
().
fadeTo
(
200
,
1
);
$
(
modal_id
).
find
(
'.notice'
).
hide
().
html
(
''
);
var
notice
=
$
(
this
).
data
(
'notice'
);
if
(
notice
!==
undefined
)
{
$notice
=
$
(
modal_id
).
find
(
'.notice'
);
$notice
.
show
().
html
(
notice
);
// This is for activating leanModal links that were in the notice. We should have a cleaner way of
// allowing all dynamically added leanmodal links to work.
$notice
.
find
(
'a[rel*=leanModal]'
).
leanModal
({
top
:
120
,
overlay
:
1
,
closeButton
:
'.close-modal'
,
position
:
'absolute'
});
}
window
.
scrollTo
(
0
,
0
);
e
.
preventDefault
();
});
...
...
lms/templates/dashboard.html
View file @
fdadd4cd
...
...
@@ -61,9 +61,13 @@ from student.models import CourseEnrollment
});
</
%
static:require
_module
>
<
%
static:require_module
module_name=
"js/learner_dashboard/entitlement_unenrollment_factory"
class_name=
"EntitlementUnenrollmentFactory"
>
EntitlementUnenrollmentFactory({
dashboardPath: "${reverse('dashboard') | n, js_escaped_string}",
signInPath: "${reverse('signin_user') | n, js_escaped_string}"
## Wait until the document is fully loaded before initializing the EntitlementUnenrollmentView
## to ensure events are setup correctly.
$(document).ready(function() {
EntitlementUnenrollmentFactory({
dashboardPath: "${reverse('dashboard') | n, js_escaped_string}",
signInPath: "${reverse('signin_user') | n, js_escaped_string}"
});
});
</
%
static:require
_module
>
% if settings.FEATURES.get('ENABLE_DASHBOARD_SEARCH'):
...
...
themes/edx.org/lms/templates/dashboard.html
View file @
fdadd4cd
...
...
@@ -63,9 +63,13 @@ from student.models import CourseEnrollment
});
</
%
static:require
_module
>
<
%
static:require_module
module_name=
"js/learner_dashboard/entitlement_unenrollment_factory"
class_name=
"EntitlementUnenrollmentFactory"
>
EntitlementUnenrollmentFactory({
dashboardPath: "${reverse('dashboard') | n, js_escaped_string}",
signInPath: "${reverse('signin_user') | n, js_escaped_string}"
## Wait until the document is fully loaded before initializing the EntitlementUnenrollmentView
## to ensure events are setup correctly.
$(document).ready(function() {
EntitlementUnenrollmentFactory({
dashboardPath: "${reverse('dashboard') | n, js_escaped_string}",
signInPath: "${reverse('signin_user') | n, js_escaped_string}"
});
});
</
%
static:require
_module
>
% if settings.FEATURES.get('ENABLE_DASHBOARD_SEARCH'):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment