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
caf14351
Commit
caf14351
authored
Dec 12, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugged tooltip latency/vanishing issue
parent
fbc0dfae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/static/coffee/src/discussion/tooltip_manager.coffee
+3
-3
No files found.
common/static/coffee/src/discussion/tooltip_manager.coffee
View file @
caf14351
...
...
@@ -12,10 +12,10 @@ class @TooltipManager
'click'
:
@
hideTooltip
showTooltip
:
(
e
)
=>
tooltipText
=
$
(
e
.
target
).
attr
(
'data-tooltip'
)
$target
=
$
(
e
.
target
).
closest
(
'[data-tooltip]'
)
tooltipText
=
$target
.
attr
(
'data-tooltip'
)
@
$tooltip
.
html
(
tooltipText
)
@
$body
.
append
(
@
$tooltip
)
$
(
e
.
target
).
children
().
css
(
'pointer-events'
,
'none'
)
tooltipCoords
=
x
:
e
.
pageX
-
(
@
$tooltip
.
outerWidth
()
/
2
)
...
...
@@ -26,8 +26,8 @@ class @TooltipManager
'top'
:
tooltipCoords
.
y
@
tooltipTimer
=
setTimeout
()
=>
@
$tooltip
.
show
().
css
(
'opacity'
,
1
)
@
$tooltip
.
show
().
css
(
'opacity'
,
1
)
@
tooltipTimer
=
setTimeout
()
=>
@
hideTooltip
()
,
3000
...
...
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