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
e047524e
Commit
e047524e
authored
Jun 27, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js cleanup system_advanced_admin.php for
https://github.com/opnsense/core/issues/1005
parent
4ea7221f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
system_advanced_admin.php
src/www/system_advanced_admin.php
+12
-16
No files found.
src/www/system_advanced_admin.php
View file @
e047524e
...
...
@@ -269,20 +269,17 @@ include("head.inc");
?>
<body>
<?php
include
(
"fbegin.inc"
);
?>
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
function
prot_change
()
{
if
(
document
.
iform
.
https_proto
.
checked
)
{
document
.
getElementById
(
"
ssl_opts
"
).
style
.
display
=
""
;
$
(
document
).
ready
(
function
()
{
$
(
"
.proto
"
).
change
(
function
()
{
if
(
$
(
"
#https_proto
"
).
prop
(
'
checked
'
)
)
{
$
(
"
.ssl_opts
"
).
show
()
;
}
else
{
document
.
getElementById
(
"
ssl_opts
"
).
style
.
display
=
"
none
"
;
}
$
(
"
.ssl_opts
"
).
hide
();
}
$
(
document
).
ready
(
function
()
{
prot_change
();
});
$
(
"
.proto
"
).
change
();
<?php
// reload page after 20 seconds if webserver is restarted
...
...
@@ -293,7 +290,6 @@ include("head.inc");
<?
php
endif
;
?>
});
//]]>
</script>
<section
class=
"page-content-main"
>
...
...
@@ -321,10 +317,10 @@ include("head.inc");
<tr>
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"Protocol"
);
?>
</td>
<td>
<input
name=
"webguiproto"
id=
"http_proto"
type=
"radio"
value=
"http"
<?=
$pconfig
[
'webguiproto'
]
==
"http"
?
'checked="checked"'
:
''
?>
onclick=
"prot_change()"
/>
<input
name=
"webguiproto"
class=
"proto"
id=
"http_proto"
type=
"radio"
value=
"http"
<?=
$pconfig
[
'webguiproto'
]
==
"http"
?
'checked="checked"'
:
''
?>
/>
<?=
gettext
(
"HTTP"
);
?>
<input
name=
"webguiproto"
id=
"https_proto"
type=
"radio"
value=
"https"
<?=
$pconfig
[
'webguiproto'
]
==
"https"
?
'checked="checked"'
:
''
?>
<?=
$certs_available
?
''
:
'disabled="disabled"'
?>
onclick=
"prot_change()"
/>
<input
name=
"webguiproto"
class=
"proto"
id=
"https_proto"
type=
"radio"
value=
"https"
<?=
$pconfig
[
'webguiproto'
]
==
"https"
?
'checked="checked"'
:
''
?>
<?=
$certs_available
?
''
:
'disabled="disabled"'
?>
/>
<?=
gettext
(
"HTTPS"
);
?>
<?php
...
...
@@ -335,7 +331,7 @@ include("head.inc");
endif
;
?>
</td>
</tr>
<tr
id
=
"ssl_opts"
>
<tr
class
=
"ssl_opts"
>
<td><a
id=
"help_for_sslcertref"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"SSL Certificate"
);
?>
</td>
<td>
<select
name=
"ssl-certref"
class=
"formselect selectpicker"
data-style=
"btn-default"
>
...
...
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