mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Fix formhandler flipswitch defaults.
This commit is contained in:
@@ -2448,7 +2448,7 @@ class e_form
|
||||
|
||||
if(empty($labels))
|
||||
{
|
||||
$labels = array('on' =>LAN_ON, 'off' =>LAN_OFF);
|
||||
$labels = array('on' =>strtoupper(LAN_ON), 'off' =>strtoupper(LAN_OFF));
|
||||
}
|
||||
|
||||
$value = $checked_enabled;
|
||||
@@ -2467,6 +2467,11 @@ class e_form
|
||||
|
||||
}
|
||||
|
||||
if(empty($options['switch']))
|
||||
{
|
||||
$options['switch'] = 'small';
|
||||
}
|
||||
|
||||
|
||||
$switchName = $this->name2id($name) . '__switch'; // fixes array names.
|
||||
|
||||
@@ -2484,6 +2489,7 @@ class e_form
|
||||
if(e_ADMIN_AREA === true)
|
||||
{
|
||||
$options['data-wrapper'] = 'wrapper form-control';
|
||||
|
||||
}
|
||||
|
||||
e107::library('load', 'bootstrap.switch');
|
||||
|
Reference in New Issue
Block a user