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
b7d1af0c
Commit
b7d1af0c
authored
May 23, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Jun 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ui) select highest visible option in hook_ipv4v6
(cherry picked from commit
ebe341ec
)
parent
a7988481
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
opnsense_legacy.js
src/www/javascript/opnsense_legacy.js
+8
-5
No files found.
src/www/javascript/opnsense_legacy.js
View file @
b7d1af0c
...
...
@@ -45,13 +45,16 @@ function hook_ipv4v6(classname, data_id) {
}
else
{
$
(
this
).
removeClass
(
'
hidden
'
);
}
}).
promise
().
done
(
function
(){
});
// select highest visible option
if
(
parseInt
(
$
(
"
#
"
+
selectlist_id
).
val
())
>
32
&&
itemValue
.
indexOf
(
"
:
"
)
==
-
1
)
{
$
(
"
#
"
+
selectlist_id
+
'
option[value=32]
'
).
attr
(
'
selected
'
,
'
selected
'
);
}
// when select list uses selectpicker, refresh
if
(
$
(
"
#
"
+
selectlist_id
).
hasClass
(
'
selectpicker
'
))
{
$
(
"
#
"
+
selectlist_id
).
selectpicker
(
'
refresh
'
);
}
});
});
}
// trigger initial onChange event
$
(
"
#
"
+
$
(
this
).
data
(
data_id
)).
change
();
...
...
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