diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-27 10:35:41 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-27 10:35:41 +0545 |
commit | b243f40caf818c5fea09b64a9d903266bb36690d (patch) | |
tree | 8a347861b68e6492101f6518fc5ccade872e601d /src/usr/local/www | |
parent | bc3e61c4950740128ef7d2200e6399ada2e0fae9 (diff) | |
download | pfsense-b243f40caf818c5fea09b64a9d903266bb36690d.zip pfsense-b243f40caf818c5fea09b64a9d903266bb36690d.tar.gz |
Standardize gpsnoselect var name
It looks confusing that in the config there is ['noselect'] but the locally-used var in the GUI is gpsselect.
Reduce future confusion by replacing gpsselect -> gpsnoselect.
There is no actual bug here, just fixing naming consistency.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/services_ntpd_gps.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr/local/www/services_ntpd_gps.php b/src/usr/local/www/services_ntpd_gps.php index 7b8751f..2781178 100644 --- a/src/usr/local/www/services_ntpd_gps.php +++ b/src/usr/local/www/services_ntpd_gps.php @@ -138,8 +138,8 @@ if ($_POST) { unset($config['ntpd']['gps']['prefer']); } - if (!empty($_POST['gpsselect'])) { - $config['ntpd']['gps']['noselect'] = $_POST['gpsselect']; + if (!empty($_POST['gpsnoselect'])) { + $config['ntpd']['gps']['noselect'] = $_POST['gpsnoselect']; } elseif (isset($config['ntpd']['gps']['noselect'])) { unset($config['ntpd']['gps']['noselect']); } @@ -321,7 +321,7 @@ $section->addInput(new Form_Checkbox( )); $section->addInput(new Form_Checkbox( - 'gpsselect', + 'gpsnoselect', null, 'Do not use this clock, display for reference only (default: unchecked).', $pconfig['noselect'] @@ -530,14 +530,14 @@ events.push(function() { set_gps_default('<?=$pconfig['type']?>'); - // Checkboxes gpsprefer and gpsselect are mutually exclusive + // Checkboxes gpsprefer and gpsnoselect are mutually exclusive $('#gpsprefer').click(function() { if ($(this).is(':checked')) { - $('#gpsselect').prop('checked', false); + $('#gpsnoselect').prop('checked', false); } }); - $('#gpsselect').click(function() { + $('#gpsnoselect').click(function() { if ($(this).is(':checked')) { $('#gpsprefer').prop('checked', false); } |