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
5c27ed6b
Commit
5c27ed6b
authored
Sep 29, 2016
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing undefined
parent
f2c1f4e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lms/templates/courseware/progress_graph.js
+5
-5
No files found.
lms/templates/courseware/progress_graph.js
View file @
5c27ed6b
...
@@ -130,18 +130,20 @@ $(function () {
...
@@ -130,18 +130,20 @@ $(function () {
}
}
}
else
{
}
else
{
s
=
{};
s
=
{};
s
.
data
=
m
;
s
.
data
=
0
;
s
.
tick
=
series
[
k
][
'data'
][
0
][
0
];
s
.
tick
=
series
[
k
][
'data'
][
0
][
0
];
s
.
label
=
series
[
k
][
'label'
];
s
.
label
=
series
[
k
][
'label'
];
series_order_object
.
push
(
s
);
series_order_object
.
push
(
s
);
}
}
}
}
// reorder the series_order_object object to match the ticks, which is the correct order
// reorder the series_order_object object to match the ticks, which is the correct order
series_order_object
.
sort
(
function
(
a
,
b
)
{
series_order_object
.
sort
(
function
(
a
,
b
)
{
return
a
.
tick
-
b
.
tick
;
return
a
.
tick
-
b
.
tick
;
});
});
// console.log(series_order_object);
// hide the vertical axis since they are audibly lacking context
// hide the vertical axis since they are audibly lacking context
for
(
var
i
=
0
;
i
<
grade_cutoff_ticks
.
length
;
i
++
)
{
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
]
=
'<span aria-hidden="true">'
+
grade_cutoff_ticks
[
i
][
1
]
+
'</span>'
;
...
@@ -180,9 +182,7 @@ $(function () {
...
@@ -180,9 +182,7 @@ $(function () {
max
:
$
{
tickIndex
-
sectionSpacer
},
max
:
$
{
tickIndex
-
sectionSpacer
},
ticks
:
function
()
{
ticks
:
function
()
{
for
(
var
i
=
0
;
i
<
ticks
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
ticks
.
length
;
i
++
)
{
if
(
series_order_object
[
i
]
&&
series_order_object
[
i
].
tick
)
{
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>'
;
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>'
;
}
}
}
return
ticks
;
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