summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_ntpd_gps.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_ntpd_gps.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_ntpd_gps.php')
-rw-r--r--src/usr/local/www/services_ntpd_gps.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/usr/local/www/services_ntpd_gps.php b/src/usr/local/www/services_ntpd_gps.php
index d20e502..5b8ad4b 100644
--- a/src/usr/local/www/services_ntpd_gps.php
+++ b/src/usr/local/www/services_ntpd_gps.php
@@ -379,7 +379,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(
'GPS Initialization',
@@ -406,7 +406,7 @@ $btncalc = new Form_Button(
'fa-calculator'
);
-$btncalc->removeClass('btn-primary')->addClass('btn-success btn-sm');
+$btncalc->setAttribute('type','button')->removeClass('btn-primary')->addClass('btn-success btn-sm');
$group->add($btncalc);
@@ -570,14 +570,10 @@ events.push(function() {
$('#btnadvgps').html('<i class="fa fa-cog"></i> ' + text);
}
- $('#btnadvgps').prop('type', 'button');
-
$('#btnadvgps').click(function(event) {
show_advgps();
});
- // Make the ‘Calculate’ button a plain button, not a submit button
- $('#btncalc').prop('type','button');
$('#result').prop("disabled", true);
// Onclick read the string from the nmeastring box, calculate the checksum
OpenPOWER on IntegriCloud