summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2015-12-19 05:14:01 -0800
committerNOYB <Al_Stu@Frontier.com>2015-12-19 05:14:01 -0800
commit24f15b3a9c80be0ed16c9254dcf5b7bdd1da7926 (patch)
tree751225a8ae7dd6efe41a8dbc4bb52d1e19019911 /src/usr/local/www/classes
parent72eaefaf1fc991d5949daadbac5ae50ed1d3ad5f (diff)
downloadpfsense-24f15b3a9c80be0ed16c9254dcf5b7bdd1da7926.zip
pfsense-24f15b3a9c80be0ed16c9254dcf5b7bdd1da7926.tar.gz
WebGUI Left Column Labels Hyper
Touch Screen Usability Annoyance https://forum.pfsense.org/index.php?topic=104135.0 Clicking the labels in the left column selects/activates the first item. This is the perfectly natural place for scrolling with thumb. No big problem really for input fields, but check boxes and buttons are inadvertently selected/toggled resulting in unintended configuration changes. Would be real nice if the labels in the left column were not "active". This commit provides an option in System - General Setup page to enable/disable this "feature". There is probably a better way, but this appears to be functional. For now at least it seems to work for me anyway. Just have to eliminate (null) the for attribute on the group labels so it doesn't have a target.
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r--src/usr/local/www/classes/Form/Group.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usr/local/www/classes/Form/Group.class.php b/src/usr/local/www/classes/Form/Group.class.php
index 4ddf70d..ac4da7e 100644
--- a/src/usr/local/www/classes/Form/Group.class.php
+++ b/src/usr/local/www/classes/Form/Group.class.php
@@ -108,6 +108,8 @@ EOT;
public function __toString()
{
+ global $config;
+
$element = parent::__toString();
// Automatically determine width for inputs without explicit set
@@ -134,6 +136,9 @@ EOT;
$inputs = implode('', $this->_inputs);
$help = $this->_getHelp();
+ if (!isset($config['system']['webgui']['webguileftcolumnhyper']))
+ $target = null;
+
$label = new Form_Element('label', false, ['for' => $target]);
$label->addClass('col-sm-'.Form::LABEL_WIDTH, 'control-label');
OpenPOWER on IntegriCloud