summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-20 16:06:02 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-20 16:06:02 +0545
commit347c0214388bae18616a9003adf84d7be509fa86 (patch)
tree7f9bd3f0093719a7a34eb2c63024345ba713abf9 /src/usr/local/www/services_dhcpv6.php
parent7cb01159934f0fa24c0c0050917cef1ad9bb9f2b (diff)
downloadpfsense-347c0214388bae18616a9003adf84d7be509fa86.zip
pfsense-347c0214388bae18616a9003adf84d7be509fa86.tar.gz
Reengineer Form_Button setAttribute
As per what was done for https://github.com/pfsense/pfsense/pull/2765 - do it to the rest of them. Seems to work OK.
Diffstat (limited to 'src/usr/local/www/services_dhcpv6.php')
-rw-r--r--src/usr/local/www/services_dhcpv6.php20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php
index bb81e2b..9da4609 100644
--- a/src/usr/local/www/services_dhcpv6.php
+++ b/src/usr/local/www/services_dhcpv6.php
@@ -759,7 +759,7 @@ $btnadv = new Form_Button(
'fa-cog'
);
-$btnadv->addClass('btn-info btn-sm');
+$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm');
$section->addInput(new Form_StaticText(
'Dynamic DNS',
@@ -827,7 +827,7 @@ $btnadv = new Form_Button(
'fa-cog'
);
-$btnadv->addClass('btn-info btn-sm');
+$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm');
$section->addInput(new Form_StaticText(
'NTP servers',
@@ -863,7 +863,7 @@ $btnadv = new Form_Button(
'fa-cog'
);
-$btnadv->addClass('btn-info btn-sm');
+$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm');
$section->addInput(new Form_StaticText(
'LDAP',
@@ -884,7 +884,7 @@ $btnadv = new Form_Button(
'fa-cog'
);
-$btnadv->addClass('btn-info btn-sm');
+$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm');
$section->addInput(new Form_StaticText(
'Network booting',
@@ -912,7 +912,7 @@ $btnadv = new Form_Button(
'fa-cog'
);
-$btnadv->addClass('btn-info btn-sm');
+$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm');
$section->addInput(new Form_StaticText(
'Additional BOOTP/DHCP Options',
@@ -1106,8 +1106,6 @@ events.push(function() {
$('#btnadvdns').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvdns').prop('type', 'button');
-
$('#btnadvdns').click(function(event) {
show_advdns();
});
@@ -1143,8 +1141,6 @@ events.push(function() {
$('#btnadvntp').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvntp').prop('type', 'button');
-
$('#btnadvntp').click(function(event) {
show_advntp();
});
@@ -1179,8 +1175,6 @@ events.push(function() {
$('#btnadvldap').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvldap').prop('type', 'button');
-
$('#btnadvldap').click(function(event) {
show_advldap();
});
@@ -1216,8 +1210,6 @@ events.push(function() {
$('#btnadvnetboot').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvnetboot').prop('type', 'button');
-
$('#btnadvnetboot').click(function(event) {
show_advnetboot();
});
@@ -1254,8 +1246,6 @@ events.push(function() {
$('#btnadvopts').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvopts').prop('type', 'button');
-
$('#btnadvopts').click(function(event) {
show_advopts();
checkLastRow();
OpenPOWER on IntegriCloud