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
feaf21fc
Commit
feaf21fc
authored
May 20, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ui) hook_stacked_form_tables, don't dig to deep
parent
0b31dc52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
opnsense_legacy.js
src/www/javascript/opnsense_legacy.js
+25
-22
No files found.
src/www/javascript/opnsense_legacy.js
View file @
feaf21fc
...
...
@@ -70,6 +70,8 @@ function hook_stacked_form_tables(match)
row_number
=
0
;
// traverse all <tr> tags
root_node
.
find
(
'
tr
'
).
each
(
function
(){
// only evaluate children under this table or in <thead|tbody|..> element
if
(
root_node
.
is
(
$
(
this
).
parent
())
||
root_node
.
is
(
$
(
this
).
parent
().
parent
()))
{
var
children
=
$
(
this
).
children
();
// copy zebra color on striped table
if
(
root_node
.
hasClass
(
'
table-striped
'
))
{
...
...
@@ -96,6 +98,7 @@ function hook_stacked_form_tables(match)
children
.
first
().
addClass
(
'
hidden-xs
'
);
}
row_number
++
;
}
});
// hook in re-apply zebra when table-striped was selected.. (on window resize and initial load)
if
(
root_node
.
data
(
'
stripe-color
'
)
!=
undefined
)
{
...
...
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