summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_captiveportal_mac_edit.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_captiveportal_mac_edit.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_captiveportal_mac_edit.php')
-rw-r--r--src/usr/local/www/services_captiveportal_mac_edit.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr/local/www/services_captiveportal_mac_edit.php b/src/usr/local/www/services_captiveportal_mac_edit.php
index 89ce6ce..5459e00 100644
--- a/src/usr/local/www/services_captiveportal_mac_edit.php
+++ b/src/usr/local/www/services_captiveportal_mac_edit.php
@@ -251,7 +251,7 @@ $btnmymac = new Form_Button(
'fa-clone'
);
-$btnmymac->removeClass('btn-primary')->addClass('btn-success btn-sm');
+$btnmymac->setAttribute('type','button')->removeClass('btn-primary')->addClass('btn-success btn-sm');
$group = new Form_Group('MAC Address');
$group->add($macaddress);
@@ -312,9 +312,6 @@ print($form);
<script type="text/javascript">
//<![CDATA[
events.push(function() {
- // Make the ‘Copy My MAC’ button a plain button, not a submit button
- $("#btnmymac").prop('type','button');
-
// On click, copy the hidden 'mymac' text to the 'mac' input
$("#btnmymac").click(function() {
$('#mac').val('<?=$mymac?>');
OpenPOWER on IntegriCloud