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
d5c6b9ef
Commit
d5c6b9ef
authored
Sep 29, 2016
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One more concat fix
parent
8eaaab5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
lms/templates/courseware/progress_graph.js
+15
-4
No files found.
lms/templates/courseware/progress_graph.js
View file @
d5c6b9ef
...
...
@@ -154,11 +154,14 @@ $(function () {
return
a
.
tick
-
b
.
tick
;
});
// console.log(series_order_object);
// hide the vertical axis since they are audibly lacking context
for
(
var
i
=
0
;
i
<
grade_cutoff_ticks
.
length
;
i
++
)
{
grade_cutoff_ticks
[
i
][
1
]
=
'<span aria-hidden="true">'
+
grade_cutoff_ticks
[
i
][
1
]
+
'</span>'
;
grade_cutoff_ticks
[
i
][
1
]
=
edx
.
HtmlUtils
.
interpolateHtml
(
edx
.
HtmlUtils
.
HTML
(
'<span aria-hidden="true">{cutoff}</span>'
),
{
cutoff
:
grade_cutoff_ticks
[
i
][
1
]
}
);
}
//Always be sure that one series has the xaxis set to 2, or the second xaxis labels won't show up
...
...
@@ -194,7 +197,15 @@ $(function () {
max
:
$
{
tickIndex
-
sectionSpacer
},
ticks
:
function
()
{
for
(
var
i
=
0
;
i
<
ticks
.
length
;
i
++
)
{
ticks
[
i
][
1
]
=
'<span class="aria-hidden=true">'
+
ticks
[
i
][
1
]
+
'</span><span class="sr">'
+
detail_tooltips
[
series_order_object
[
i
].
label
][
series_order_object
[
i
].
data
]
+
'</span>'
;
if
(
detail_tooltips
[
series_order_object
[
i
]])
{
ticks
[
i
][
1
]
=
edx
.
HtmlUtils
.
interpolateHtml
(
edx
.
HtmlUtils
.
HTML
(
'<span aria-hidden="true">{original}</span><span class="sr">{additional}</span>'
),
{
original
:
ticks
[
i
][
1
],
additional
:
detail_tooltips
[
series_order_object
[
i
].
label
][
series_order_object
[
i
].
data
]
}
);
}
}
return
ticks
;
},
...
...
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