From 472f121be9e7c77a1965504df18244a2012a6cb0 Mon Sep 17 00:00:00 2001 From: jskyboo Date: Sun, 19 Feb 2017 04:44:11 -0800 Subject: Allow PGRMF for Custom GPS type. --- src/usr/local/www/services_ntpd_gps.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usr/local/www') 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', '' !== "Garmin"); + hideInput('processpgrmf', ('' !== "Garmin" && '' !== "Custom")); if ('' == '') { set_gps_default(''); -- cgit v1.1