mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +02:00
Fixes #1457 New Forum Posts Menu - "Show Original Topic in Menu" option not saving. New User-Extended Field preset for User comments. New e107::debug() function added for throwing info to the browser console. (Firefox/Chrome)
This commit is contained in:
@@ -1624,7 +1624,7 @@ class e_form
|
||||
*/
|
||||
function radio($name, $value, $checked = false, $options = null)
|
||||
{
|
||||
|
||||
|
||||
if(!is_array($options)) parse_str($options, $options);
|
||||
|
||||
if(is_array($value))
|
||||
@@ -1665,6 +1665,8 @@ class e_form
|
||||
{
|
||||
$text .= "<span>".$labelFound."</span></label>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $text;
|
||||
}
|
||||
@@ -1683,6 +1685,12 @@ class e_form
|
||||
|
||||
$options_on = varset($options['enabled'],array());
|
||||
$options_off = varset($options['disabled'],array());
|
||||
|
||||
unset($options['enabled'],$options['disabled']);
|
||||
|
||||
$options_on = array_merge($options_on, $options);
|
||||
$options_off = array_merge($options_off, $options);
|
||||
|
||||
|
||||
if(vartrue($options['class']) == 'e-expandit' || vartrue($options['expandit'])) // See admin->prefs 'Single Login' for an example.
|
||||
{
|
||||
@@ -1708,6 +1716,8 @@ class e_form
|
||||
$text = $this->radio($name, 1, $checked_enabled, $options_on)." ".$this->radio($name, 0, !$checked_enabled, $options_off);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $text;
|
||||
|
||||
}
|
||||
@@ -2639,6 +2649,7 @@ class e_form
|
||||
|
||||
case 'radio':
|
||||
//$def_options['class'] = ' ';
|
||||
$def_options = array('class' => '');
|
||||
unset($def_options['size'], $def_options['selected']);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user