diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-22 13:14:13 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-22 13:14:13 -0500 |
commit | daa5312f4cd54bb1671624a4d1b3fa066f80e4c1 (patch) | |
tree | 1de752e605306e6e08d3098e2c995cb78bdd60ef /src/usr/local/www/interfaces_ppps_edit.php | |
parent | 55cbefffb13de26c0e47fb396962b66bc8cd70ff (diff) | |
download | pfsense-daa5312f4cd54bb1671624a4d1b3fa066f80e4c1.zip pfsense-daa5312f4cd54bb1671624a4d1b3fa066f80e4c1.tar.gz |
Fixed #5797
Diffstat (limited to 'src/usr/local/www/interfaces_ppps_edit.php')
-rw-r--r-- | src/usr/local/www/interfaces_ppps_edit.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/usr/local/www/interfaces_ppps_edit.php b/src/usr/local/www/interfaces_ppps_edit.php index 26280ea..bfeb81f 100644 --- a/src/usr/local/www/interfaces_ppps_edit.php +++ b/src/usr/local/www/interfaces_ppps_edit.php @@ -725,9 +725,9 @@ $section->addInput(new Form_Select( 'Periodic Reset', $pconfig['pppoe-reset-type'], array( - '' => 'Disabled', - 'custom' => 'Custom', - 'preset' => 'Pre-set' + '' => gettext('Disabled'), + 'custom' => gettext('Custom'), + 'preset' => gettext('Pre-set') ) ))->addClass('pppoe')->setHelp('Select a reset timing type'); @@ -965,18 +965,19 @@ events.push(function() { // The options that follow are only shown if type == 'ppp' var ppptype = ($('#type').val() == 'ppp'); - hideInput('apnum', showadvanced && ppptype); - hideInput('simpin', showadvanced && ppptype); - hideInput('pin-wait', showadvanced && ppptype); - hideInput('initstr', showadvanced && ppptype); - hideInput('connect-timeout', showadvanced && ppptype); - hideCheckbox('uptime', showadvanced && ppptype); + hideInput('apn', showadvanced || !ppptype); + hideInput('apnum', showadvanced || !ppptype); + hideInput('simpin', showadvanced || !ppptype); + hideInput('pin-wait', showadvanced || !ppptype); + hideInput('initstr', showadvanced || !ppptype); + hideInput('connect-timeout', showadvanced || !ppptype); + hideCheckbox('uptime', showadvanced || !ppptype); // The options that follow are only shown if type == 'pppoe' var pppoetype = ($('#type').val() != 'pppoe'); - hideClass('pppoe', showadvanced || pppoetype); - hideInput('pppoe-reset-type', showadvanced || pppoetype); + hideClass('pppoe', pppoetype); + hideInput('pppoe-reset-type', pppoetype || showadvanced); hideResetDisplay(true); |