diff options
author | jskyboo <jack@ron.hog.mooo.info> | 2017-02-19 04:44:11 -0800 |
---|---|---|
committer | jskyboo <jack@ron.hog.mooo.info> | 2017-02-19 04:44:11 -0800 |
commit | 472f121be9e7c77a1965504df18244a2012a6cb0 (patch) | |
tree | 147d3a759460b389f72c4820b05d832ba07aab20 /src/usr/local/www/services_ntpd_gps.php | |
parent | bd74b2ec6287159e596c00b9d54ee607c49f1094 (diff) | |
download | pfsense-472f121be9e7c77a1965504df18244a2012a6cb0.zip pfsense-472f121be9e7c77a1965504df18244a2012a6cb0.tar.gz |
Allow PGRMF for Custom GPS type.
Diffstat (limited to 'src/usr/local/www/services_ntpd_gps.php')
-rw-r--r-- | src/usr/local/www/services_ntpd_gps.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/services_ntpd_gps.php b/src/usr/local/www/services_ntpd_gps.php index 2de0fa8..40ce677 100644 --- a/src/usr/local/www/services_ntpd_gps.php +++ b/src/usr/local/www/services_ntpd_gps.php @@ -176,7 +176,7 @@ if ($_POST) { if (!empty($_POST['processpgrmf'])) { $config['ntpd']['gps']['processpgrmf'] = $_POST['processpgrmf']; - } elseif (isset($config['ntpd']['gps']['processpgrmf']) || $config['ntpd']['gps']['type'] !== 'Garmin') { + } elseif (isset($config['ntpd']['gps']['processpgrmf'])) { unset($config['ntpd']['gps']['processpgrmf']); } @@ -700,9 +700,9 @@ events.push(function() { // When the 'GPS' selector is changed, we set the gps defaults $('#gpstype').on('change', function() { set_gps_default($(this).val()); - hideInput('processpgrmf', $(this).val() !== "Garmin"); + hideInput('processpgrmf', ($(this).val() !== "Garmin" && $(this).val() !== "Custom")); }); - hideInput('processpgrmf', '<?=$pconfig['type']?>' !== "Garmin"); + hideInput('processpgrmf', ('<?=$pconfig['type']?>' !== "Garmin" && '<?=$pconfig['type']?>' !== "Custom")); if ('<?=$pconfig['initcmd']?>' == '') { set_gps_default('<?=$pconfig['type']?>'); |