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
499b58ee
Commit
499b58ee
authored
Dec 29, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) remove jquery.ipv4v6ify.js from firewall_virtual_ip_edit.php
parent
616a56cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
firewall_virtual_ip_edit.php
src/www/firewall_virtual_ip_edit.php
+6
-11
No files found.
src/www/firewall_virtual_ip_edit.php
View file @
499b58ee
...
...
@@ -243,7 +243,6 @@ include("head.inc");
?>
<body>
<script
type=
"text/javascript"
src=
"/javascript/jquery.ipv4v6ify.js"
></script>
<?php
include
(
"fbegin.inc"
);
?>
...
...
@@ -295,16 +294,11 @@ $( document ).ready(function() {
},
100
);
});
// IPv4 address, fix dstmask
$
(
"
#subnet
"
).
change
(
function
(){
if
(
$
(
this
).
val
().
indexOf
(
'
.
'
)
>
-
1
&&
$
(
"
#subnet_bits
"
).
val
()
>
32
)
{
$
(
"
#subnet_bits
"
).
val
(
"
32
"
);
$
(
'
#subnet_bits
'
).
selectpicker
(
'
refresh
'
);
}
});
// toggle initial mode change
$
(
"
#mode
"
).
change
();
// IPv4/IPv6 select
hook_ipv4v6
(
'
ipv4v6net
'
,
'
network-id
'
);
});
</script>
...
...
@@ -380,10 +374,11 @@ $( document ).ready(function() {
<input
name=
"subnet"
type=
"text"
class=
"form-control"
id=
"subnet"
size=
"28"
value=
"
<?=
$pconfig
[
'subnet'
];
?>
"
/>
</td>
<td
>
<select
name=
"subnet_bits"
class=
"selectpicker"
data-size=
"10"
data-width=
"auto"
id=
"subnet_bits"
>
<select
name=
"subnet_bits"
data-network-id=
"subnet"
class=
"selectpicker ipv4v6net"
data-size=
"10"
data-width=
"auto"
id=
"subnet_bits"
>
<option
disabled=
"disabled"
></option>
<!-- workaround for selectpicker -->
<?php
for
(
$i
=
128
;
$i
>=
1
;
$i
--
)
:
?>
<option
value=
"
<?=
$i
;
?>
"
<?
php
if
(
$i
==
$pconfig
[
'subnet_bits'
])
echo
"selected=
\"
selected
\
"
"
;
?>
>
<option
value=
"
<?=
$i
;
?>
"
<?
=
$i
==
$pconfig
[
'subnet_bits'
]
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
$i
;
?>
</option>
<?php
...
...
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