summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_logs_settings.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-15 08:34:36 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-15 08:34:36 -0500
commit5e7a1d46c0f49e0367f2141bfedc755552c7c0a2 (patch)
treead64848edf891b7d8ab758c9fd6390346c3a1e15 /src/usr/local/www/status_logs_settings.php
parentf893557553d139d90b4c7c10c877da99a729dac5 (diff)
downloadpfsense-5e7a1d46c0f49e0367f2141bfedc755552c7c0a2.zip
pfsense-5e7a1d46c0f49e0367f2141bfedc755552c7c0a2.tar.gz
Revised system to hide the automatically generated "Toggle all" button when not required.
Original system broke with PR to change radio button names.
Diffstat (limited to 'src/usr/local/www/status_logs_settings.php')
-rw-r--r--src/usr/local/www/status_logs_settings.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/usr/local/www/status_logs_settings.php b/src/usr/local/www/status_logs_settings.php
index 95ba3b1..11cc1dc 100644
--- a/src/usr/local/www/status_logs_settings.php
+++ b/src/usr/local/www/status_logs_settings.php
@@ -462,14 +462,6 @@ $group->add(new Form_MultiCheckbox(
$pconfig['hostapd']
));
-// Ugly hack to prevent the "Toggle all" button from being automatically created
-$group->add(new Form_MultiCheckbox(
- 'notoggleall',
- null,
- 'No toggle all',
- $pconfig['hostapd']
-))->displayAsRadio();
-
$group->setHelp('Syslog sends UDP datagrams to port 514 on the specified remote '.
'syslog server, unless another port is specified. Be sure to set syslogd on '.
'the remote server to accept syslog messages from pfSense.');
@@ -484,7 +476,8 @@ print $form;
//<![CDATA[
events.push(function() {
- hideMultiCheckbox('notoggleall', true);
+ // We don't want to see the automatically generated "Toggle all" button
+ $('[name=btntoggleall]').hide();
// ---------- Click checkbox handlers ---------------------------------------------------------
@@ -496,7 +489,6 @@ events.push(function() {
hideClass('remotelogging', !this.checked);
hideSelect('sourceip', !this.checked);
hideSelect('ipproto', !this.checked);
- hideMultiCheckbox('notoggleall', true);
});
function disableEverything() {
OpenPOWER on IntegriCloud