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
693c3f73
Commit
693c3f73
authored
Dec 29, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zap row_toggle.js
parent
c8621485
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
66 deletions
+0
-66
row_toggle.js
src/www/javascript/row_toggle.js
+0
-66
No files found.
src/www/javascript/row_toggle.js
deleted
100644 → 0
View file @
c8621485
function
fr_toggle
(
id
,
prefix
)
{
if
(
!
prefix
)
prefix
=
'
fr
'
;
var
checkbox
=
document
.
getElementById
(
prefix
+
'
c
'
+
id
);
checkbox
.
checked
=
!
checkbox
.
checked
;
fr_bgcolor
(
id
,
prefix
);
}
function
fr_bgcolor
(
id
,
prefix
)
{
if
(
!
prefix
)
prefix
=
'
fr
'
;
var
row
=
document
.
getElementById
(
prefix
+
id
);
var
checkbox
=
document
.
getElementById
(
prefix
+
'
c
'
+
id
);
var
cells
=
row
.
getElementsByTagName
(
'
td
'
);
var
cellcnt
=
cells
.
length
;
for
(
i
=
0
;
i
<
cellcnt
;
i
++
)
{
// Check for cells with frd id only
if
(
cells
[
i
].
id
==
prefix
+
'
d
'
+
id
)
cells
[
i
].
style
.
backgroundColor
=
checkbox
.
checked
?
"
#FFFFBB
"
:
"
#FFFFFF
"
;
}
//cells[7].style.backgroundColor = checkbox.checked ? "#FFFFBB" : "#990000";
}
function
fr_insline
(
id
,
on
,
prefix
)
{
if
(
!
prefix
)
prefix
=
'
fr
'
;
var
row
=
document
.
getElementById
(
prefix
+
id
);
var
prevrow
;
if
(
id
!=
0
)
{
prevrow
=
document
.
getElementById
(
prefix
+
(
id
-
1
));
}
else
{
prevrow
=
document
.
getElementById
(
prefix
+
'
header
'
);
}
var
cells
=
row
.
getElementsByTagName
(
"
td
"
);
var
prevcells
=
prevrow
.
getElementsByTagName
(
"
td
"
);
for
(
i
=
0
;
i
<=
prevcells
.
length
-
1
;
i
++
)
{
if
(
prevcells
[
i
].
id
==
prefix
+
'
d
'
+
(
id
-
1
))
{
if
(
on
)
{
prevcells
[
i
].
style
.
borderBottom
=
"
3px solid #990000
"
;
prevcells
[
i
].
style
.
paddingBottom
=
((
id
!=
0
)
?
2
:
3
)
+
"
px
"
;
}
else
{
prevcells
[
i
].
style
.
borderBottom
=
"
1px solid #999999
"
;
prevcells
[
i
].
style
.
borderBottomWidth
=
"
1px
"
;
prevcells
[
i
].
style
.
paddingBottom
=
((
id
!=
0
)
?
4
:
5
)
+
"
px
"
;
}
}
}
for
(
i
=
0
;
i
<=
cells
.
length
-
1
;
i
++
)
{
if
(
cells
[
i
].
id
==
prefix
+
'
d
'
+
(
id
))
{
if
(
on
)
{
cells
[
i
].
style
.
borderTop
=
"
2px solid #990000
"
;
cells
[
i
].
style
.
paddingTop
=
"
2px
"
;
}
else
{
cells
[
i
].
style
.
borderTopWidth
=
0
;
cells
[
i
].
style
.
paddingTop
=
"
4px
"
;
}
}
}
}
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