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
8eaaab5a
Commit
8eaaab5a
authored
Sep 29, 2016
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing two more safe template for threshold
parent
bfc42fa0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
lms/templates/courseware/progress_graph.js
+23
-11
No files found.
lms/templates/courseware/progress_graph.js
View file @
8eaaab5a
...
...
@@ -6,17 +6,29 @@ import math
$
(
function
()
{
function
showTooltip
(
x
,
y
,
contents
)
{
$
(
'<div id="tooltip">'
+
contents
+
'</div>'
).
css
(
{
position
:
'absolute'
,
display
:
'none'
,
top
:
y
+
5
,
left
:
x
+
15
,
border
:
'1px solid #000'
,
padding
:
'4px 6px'
,
color
:
'#fff'
,
'background-color'
:
'#333'
,
opacity
:
0.90
}).
appendTo
(
"body"
).
fadeIn
(
200
);
var
$tooltip_div
=
$
(
'<div id="tooltip"></div>'
).
css
({
position
:
'absolute'
,
display
:
'none'
,
top
:
y
+
5
,
left
:
x
+
15
,
border
:
'1px solid #000'
,
padding
:
'4px 6px'
,
color
:
'#fff'
,
'background-color'
:
'#222'
,
opacity
:
0.90
});
edx
.
HtmlUtils
.
setHtml
(
$tooltip_div
,
edx
.
HtmlUtils
.
HTML
(
contents
)
);
edx
.
HtmlUtils
.
append
(
$
(
'body'
),
edx
.
HtmlUtils
.
HTML
(
$tooltip_div
)
);
$
(
'#tooltip'
).
fadeIn
(
200
);
}
/* -------------------------------- Grade detail bars -------------------------------- */
...
...
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