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
98d55033
Unverified
Commit
98d55033
authored
Dec 20, 2017
by
Harry Rein
Committed by
GitHub
Dec 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16982 from edx/HarryRein/hide-policy-on-leave-session
Hide policy information when leaving a session.
parents
d00697f5
0d155823
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lms/static/js/learner_dashboard/views/course_entitlement_view.js
+2
-0
lms/templates/dashboard/_dashboard_course_listing.html
+1
-0
No files found.
lms/static/js/learner_dashboard/views/course_entitlement_view.js
View file @
98d55033
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
this
.
$courseCardMessages
=
$
(
options
.
courseCardMessages
);
// Additional session messages
this
.
$courseCardMessages
=
$
(
options
.
courseCardMessages
);
// Additional session messages
this
.
$courseTitleLink
=
$
(
options
.
courseTitleLink
);
// Title link to course home page
this
.
$courseTitleLink
=
$
(
options
.
courseTitleLink
);
// Title link to course home page
this
.
$courseImageLink
=
$
(
options
.
courseImageLink
);
// Image link to course home page
this
.
$courseImageLink
=
$
(
options
.
courseImageLink
);
// Image link to course home page
this
.
$policyMsg
=
$
(
options
.
policyMsg
);
// Message for policy information
// Bind action elements with associated events to objects outside this view
// Bind action elements with associated events to objects outside this view
this
.
$dateDisplayField
=
this
.
$parentEl
?
this
.
$parentEl
.
find
(
options
.
dateDisplayField
)
:
this
.
$dateDisplayField
=
this
.
$parentEl
?
this
.
$parentEl
.
find
(
options
.
dateDisplayField
)
:
...
@@ -192,6 +193,7 @@
...
@@ -192,6 +193,7 @@
this
.
$triggerOpenBtn
.
addClass
(
'hidden'
);
this
.
$triggerOpenBtn
.
addClass
(
'hidden'
);
this
.
$enterCourseBtn
.
addClass
(
'hidden'
);
this
.
$enterCourseBtn
.
addClass
(
'hidden'
);
this
.
$courseCardMessages
.
remove
();
this
.
$courseCardMessages
.
remove
();
this
.
$policyMsg
.
remove
();
this
.
$
(
'.enroll-btn-initial'
).
focus
();
this
.
$
(
'.enroll-btn-initial'
).
focus
();
HtmlUtils
.
setHtml
(
HtmlUtils
.
setHtml
(
this
.
$dateDisplayField
,
this
.
$dateDisplayField
,
...
...
lms/templates/dashboard/_dashboard_course_listing.html
View file @
98d55033
...
@@ -311,6 +311,7 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
...
@@ -311,6 +311,7 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
courseTitleLink: '${ '#course-card-' + str(course_card_index) + ' .course-title a' | n, js_escaped_string }',
courseTitleLink: '${ '#course-card-' + str(course_card_index) + ' .course-title a' | n, js_escaped_string }',
courseImageLink: '${ '#course-card-' + str(course_card_index) + ' .wrapper-course-image > a' | n, js_escaped_string }',
courseImageLink: '${ '#course-card-' + str(course_card_index) + ' .wrapper-course-image > a' | n, js_escaped_string }',
dateDisplayField: '${ '#course-card-' + str(course_card_index) + ' .info-date-block' | n, js_escaped_string }',
dateDisplayField: '${ '#course-card-' + str(course_card_index) + ' .info-date-block' | n, js_escaped_string }',
policyMsg: '${ '#course-card-' + str(course_card_index) + ' .info-expires-at' | n, js_escaped_string }',
enterCourseBtn: '${ '#course-card-' + str(course_card_index) + ' .enter-course' | n, js_escaped_string }',
enterCourseBtn: '${ '#course-card-' + str(course_card_index) + ' .enter-course' | n, js_escaped_string }',
availableSessions: '${ entitlement_available_sessions | n, dump_js_escaped_json }',
availableSessions: '${ entitlement_available_sessions | n, dump_js_escaped_json }',
entitlementUUID: '${ entitlement.course_uuid | n, js_escaped_string }',
entitlementUUID: '${ entitlement.course_uuid | n, js_escaped_string }',
...
...
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