Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
0064a799
Commit
0064a799
authored
Jun 12, 2011
by
stef
Browse files
[enh] show toggle text on focus, not on hover
parent
091d9678
Changes
1
Hide whitespace changes
Inline
Side-by-side
media/js/form.js
View file @
0064a799
function
init_form
()
{
$
(
'
.help_text
'
).
hide
();
$
(
"
.fieldWrapper
"
).
hover
(
function
(
event
)
{
$
(
this
).
find
(
'
.help_text
'
).
toggle
();});
$
(
"
.fieldWrapper
"
).
focusin
(
function
(
event
)
{
$
(
this
).
find
(
'
.help_text
'
).
show
();});
$
(
"
.fieldWrapper
"
).
focusout
(
function
(
event
)
{
$
(
this
).
find
(
'
.help_text
'
).
hide
();});
$
(
"
#show_optionals
"
).
hide
();
$
(
"
#id_contractual
"
).
click
(
function
(
event
)
{
$
(
"
#id_contract_excerpt_parent
"
).
parent
().
toggle
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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