Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
OpnSense
Commits
5a893de7
Commit
5a893de7
authored
Aug 04, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ui) small javascript fix on help button behaviour
parent
42c4019b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
opnsense_ui.js
src/opnsense/www/js/opnsense_ui.js
+4
-2
No files found.
src/opnsense/www/js/opnsense_ui.js
View file @
5a893de7
...
@@ -207,12 +207,13 @@ function addMultiSelectClearUI() {
...
@@ -207,12 +207,13 @@ function addMultiSelectClearUI() {
*/
*/
function
initFormHelpUI
()
{
function
initFormHelpUI
()
{
// handle help messages show/hide
// handle help messages show/hide
$
(
"
a[class='showhelp']
"
).
click
(
function
()
{
$
(
"
a[class='showhelp']
"
).
click
(
function
(
event
)
{
$
(
"
*[for='
"
+
$
(
this
).
attr
(
'
id
'
)
+
"
']
"
).
toggleClass
(
"
hidden show
"
);
$
(
"
*[for='
"
+
$
(
this
).
attr
(
'
id
'
)
+
"
']
"
).
toggleClass
(
"
hidden show
"
);
event
.
preventDefault
();
});
});
// handle all help messages show/hide
// handle all help messages show/hide
$
(
'
[id*="show_all_help"]
'
).
click
(
function
()
{
$
(
'
[id*="show_all_help"]
'
).
click
(
function
(
event
)
{
$
(
'
[id*="show_all_help"]
'
).
toggleClass
(
"
fa-toggle-on fa-toggle-off
"
);
$
(
'
[id*="show_all_help"]
'
).
toggleClass
(
"
fa-toggle-on fa-toggle-off
"
);
$
(
'
[id*="show_all_help"]
'
).
toggleClass
(
"
text-success text-danger
"
);
$
(
'
[id*="show_all_help"]
'
).
toggleClass
(
"
text-success text-danger
"
);
if
(
$
(
'
[id*="show_all_help"]
'
).
hasClass
(
"
fa-toggle-on
"
))
{
if
(
$
(
'
[id*="show_all_help"]
'
).
hasClass
(
"
fa-toggle-on
"
))
{
...
@@ -222,6 +223,7 @@ function initFormHelpUI() {
...
@@ -222,6 +223,7 @@ function initFormHelpUI() {
$
(
'
[for*="help_for"]
'
).
addClass
(
"
hidden
"
);
$
(
'
[for*="help_for"]
'
).
addClass
(
"
hidden
"
);
$
(
'
[for*="help_for"]
'
).
removeClass
(
"
show
"
);
$
(
'
[for*="help_for"]
'
).
removeClass
(
"
show
"
);
}
}
event
.
preventDefault
();
});
});
}
}
...
...
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