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
333a7db4
Commit
333a7db4
authored
Jun 26, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
javascript cleanup services_dnsmasq.php for
https://github.com/opnsense/core/issues/1005
parent
2d9e6004
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
services_dnsmasq.php
src/www/services_dnsmasq.php
+8
-6
No files found.
src/www/services_dnsmasq.php
View file @
333a7db4
...
...
@@ -151,12 +151,14 @@ include("head.inc");
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
function
show_advanced_dns
()
{
document
.
getElementById
(
"
showadvbox
"
).
innerHTML
=
''
;
aodiv
=
document
.
getElementById
(
'
showadv
'
);
aodiv
.
style
.
display
=
"
block
"
;
}
$
(
document
).
ready
(
function
()
{
$
(
"
#show_advanced_dns
"
).
click
(
function
(
event
){
$
(
"
#showadvbox
"
).
hide
();
$
(
"
#showadv
"
).
show
();
});
if
(
$
(
"
#custom_options
"
).
val
()
!=
""
)
{
$
(
"
#show_advanced_dns
"
).
click
();
}
// delete host action
$
(
"
.act_delete_host
"
).
click
(
function
(
event
){
event
.
preventDefault
();
...
...
@@ -358,7 +360,7 @@ $( document ).ready(function() {
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"Advanced"
);
?>
</td>
<td>
<div
id=
"showadvbox"
<?=
!
empty
(
$pconfig
[
'custom_options'
])
?
"style='display:none'"
:
""
;
?>
>
<input
type=
"button"
class=
"btn btn-default btn-xs"
onclick=
"show_advanced_dns()
"
value=
"
<?=
gettext
(
"Advanced"
);
?>
"
/>
-
<?=
gettext
(
"Show advanced option"
);
?>
<input
type=
"button"
class=
"btn btn-default btn-xs"
id=
"show_advanced_dns
"
value=
"
<?=
gettext
(
"Advanced"
);
?>
"
/>
-
<?=
gettext
(
"Show advanced option"
);
?>
</div>
<div
id=
"showadv"
<?=
empty
(
$pconfig
[
'custom_options'
])
?
"style='display:none'"
:
""
;
?>
>
<strong>
<?=
gettext
(
"Advanced"
);
?>
<br
/></strong>
...
...
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