summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.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_dhcp.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_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index 59cf4d0..3139cb3 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -1004,7 +1004,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',
@@ -1054,7 +1054,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(
'MAC address control',
@@ -1083,7 +1083,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',
@@ -1110,7 +1110,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(
'TFTP',
@@ -1131,7 +1131,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',
@@ -1153,7 +1153,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',
@@ -1426,8 +1426,6 @@ events.push(function() {
$('#btnadvdns').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvdns').prop('type', 'button');
-
$('#btnadvdns').click(function(event) {
show_advdns();
});
@@ -1463,8 +1461,6 @@ events.push(function() {
$('#btnadvmac').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvmac').prop('type', 'button');
-
$('#btnadvmac').click(function(event) {
show_advmac();
});
@@ -1500,8 +1496,6 @@ events.push(function() {
$('#btnadvntp').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvntp').prop('type', 'button');
-
$('#btnadvntp').click(function(event) {
show_advntp();
});
@@ -1536,8 +1530,6 @@ events.push(function() {
$('#btnadvtftp').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvtftp').prop('type', 'button');
-
$('#btnadvtftp').click(function(event) {
show_advtftp();
});
@@ -1572,8 +1564,6 @@ events.push(function() {
$('#btnadvldap').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvldap').prop('type', 'button');
-
$('#btnadvldap').click(function(event) {
show_advldap();
});
@@ -1609,8 +1599,6 @@ events.push(function() {
$('#btnadvopts').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvopts').prop('type', 'button');
-
$('#btnadvopts').click(function(event) {
show_advopts();
});
OpenPOWER on IntegriCloud