summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-22 13:14:13 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-22 13:14:13 -0500
commitdaa5312f4cd54bb1671624a4d1b3fa066f80e4c1 (patch)
tree1de752e605306e6e08d3098e2c995cb78bdd60ef /src/usr/local
parent55cbefffb13de26c0e47fb396962b66bc8cd70ff (diff)
downloadpfsense-daa5312f4cd54bb1671624a4d1b3fa066f80e4c1.zip
pfsense-daa5312f4cd54bb1671624a4d1b3fa066f80e4c1.tar.gz
Fixed #5797
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/interfaces_ppps_edit.php23
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);
OpenPOWER on IntegriCloud