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
b60cefb3
Unverified
Commit
b60cefb3
authored
Nov 02, 2017
by
Tyler Hallada
Committed by
GitHub
Nov 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16418 from edx/thallada/ret-section-highlights-button
Make the Section Highlights in outline a button
parents
ff56102d
dd087a1e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
cms/static/js/views/course_outline.js
+5
-3
cms/static/sass/views/_outline.scss
+6
-0
cms/templates/js/course-outline.underscore
+2
-2
No files found.
cms/static/js/views/course_outline.js
View file @
b60cefb3
...
...
@@ -220,9 +220,11 @@ define(['jquery', 'underscore', 'js/views/xblock_outline', 'common/js/components
event
.
preventDefault
();
this
.
publishXBlock
();
}.
bind
(
this
));
element
.
find
(
'.highlights-button'
).
click
(
function
(
event
)
{
event
.
preventDefault
();
this
.
highlightsXBlock
();
element
.
find
(
'.highlights-button'
).
on
(
'click keydown'
,
function
(
event
)
{
if
(
event
.
type
===
'click'
||
event
.
which
===
13
||
event
.
which
===
32
)
{
event
.
preventDefault
();
this
.
highlightsXBlock
();
}
}.
bind
(
this
));
},
...
...
cms/static/sass/views/_outline.scss
View file @
b60cefb3
...
...
@@ -639,6 +639,12 @@
.highlights-button
{
cursor
:
pointer
;
color
:
theme-color
(
"primary"
);
// remove button styling
border
:
none
;
background
:
none
;
padding
:
0
;
font-weight
:
600
;
}
.number-highlights
{
...
...
cms/templates/js/course-outline.underscore
View file @
b60cefb3
...
...
@@ -203,10 +203,10 @@ if (is_proctored_exam) {
<% if (xblockInfo.get('highlights_enabled') && course.get('self_paced') && xblockInfo.isChapter()) { %>
<div class="block-highlights">
<% var number_of_highlights = (xblockInfo.get('highlights') || []).length; %>
<
spa
n class="block-highlights-value highlights-button action-button">
<
butto
n class="block-highlights-value highlights-button action-button">
<span class="number-highlights"><%- number_of_highlights %></span>
<%- gettext('Section Highlights') %>
</
spa
n>
</
butto
n>
</div>
<% } %>
<% if (xblockInfo.get('is_time_limited')) { %>
...
...
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