aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-05-06 17:50:22 -0700
committerCesar G <prototech91@gmail.com>2014-05-08 08:35:38 -0700
commit2e025f1655293d3032f04907e5d74a812e1a659a (patch)
treec600a31cbcbd116e076ba67df399cc5c4db45914 /phpBB/includes
parentd4fc060bcd61228fdf78da4f2d290a7a17546c46 (diff)
downloadforums-2e025f1655293d3032f04907e5d74a812e1a659a.tar
forums-2e025f1655293d3032f04907e5d74a812e1a659a.tar.gz
forums-2e025f1655293d3032f04907e5d74a812e1a659a.tar.bz2
forums-2e025f1655293d3032f04907e5d74a812e1a659a.tar.xz
forums-2e025f1655293d3032f04907e5d74a812e1a659a.zip
[ticket/9388] Add support for making <select> options able to toggle settings.
PHPBB3-9388
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_acp.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index 2c66f6009c..0d19fc4d6a 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -364,8 +364,9 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
if ($tpl_type[0] == 'select')
{
$size = (isset($tpl_type[1])) ? (int) $tpl_type[1] : 1;
+ $data_toggle = (!empty($tpl_type[2])) ? ' data-toggable-settings="true"' : '';
- $tpl = '<select id="' . $key . '" name="' . $name . '"' . (($size > 1) ? ' size="' . $size . '"' : '') . '>' . $return . '</select>';
+ $tpl = '<select id="' . $key . '" name="' . $name . '"' . (($size > 1) ? ' size="' . $size . '"' : '') . $data_toggle . '>' . $return . '</select>';
}
else
{