Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
a0d35ab6
Commit
a0d35ab6
authored
Mar 08, 2018
by
Aria Givi
Browse files
Icons angepasst
parent
95fa82c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/assets/js/focus-creator.js
View file @
a0d35ab6
$
(
function
()
{
setLabelText
();
setKeyListeners
();
setDropdownListener
();
setDropdownListener
s
();
});
/**
...
...
@@ -19,25 +19,26 @@ function setKeyListeners () {
});
}
function
setDropdownListener
()
{
$
(
'
input:checkbox#toggle-dropdowns
'
).
change
(
function
()
{
function
setDropdownListeners
()
{
$
(
'
input:checkbox#toggle-dropdowns
'
).
change
(
function
()
{
if
(
$
(
this
).
is
(
'
:checked
'
))
{
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
close-dropdowns
'
));
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
close-dropdowns
'
)
+
'
<i class="fa fa-minus-square" aria-hidden="true"></i>
'
);
$
(
"
.focus-dropdown-toggle
"
).
prop
(
'
checked
'
,
true
);
}
else
{
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
open-dropdowns
'
));
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
open-dropdowns
'
)
+
'
<i class="fa fa-plus-square" aria-hidden="true"></i>
'
);
$
(
"
.focus-dropdown-toggle
"
).
prop
(
'
checked
'
,
false
);
}
}
)
});
$
(
"
.focus-dropdown-toggle
"
).
change
(
function
()
{
});
}
function
setLabelText
()
{
if
(
$
(
'
input:checkbox#toggle-dropdowns
'
).
is
(
'
:checked
'
))
{
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
close-dropdowns
'
));
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
close-dropdowns
'
)
+
'
<i class="fa fa-minus-square" aria-hidden="true"></i>
'
);
}
else
{
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
open-dropdowns
'
));
$
(
"
#toggle-dropdowns-label
"
).
html
(
t
(
'
open-dropdowns
'
)
+
'
<i class="fa fa-plus-square" aria-hidden="true"></i>
'
);
}
}
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