mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Admin-UI inline editing now works with type=boolean
This commit is contained in:
@@ -2318,9 +2318,17 @@ TEMPLATE;
|
||||
|
||||
switch ($type)
|
||||
{
|
||||
case 'date':
|
||||
case 'datetime':
|
||||
$array = array(
|
||||
'text' => "Text Box",
|
||||
"hidden" => "Hidden"
|
||||
);
|
||||
break;
|
||||
|
||||
case 'int':
|
||||
case 'tinyint':
|
||||
case 'bigint':
|
||||
case 'smallint':
|
||||
$array = array(
|
||||
"boolean" => "True/False",
|
||||
@@ -2399,10 +2407,14 @@ TEMPLATE;
|
||||
{
|
||||
$name = $tmp[2];
|
||||
}
|
||||
else // Link_description
|
||||
elseif(count($tmp) == 2) // Link_description
|
||||
{
|
||||
$name = $tmp[1];
|
||||
}
|
||||
elseif(count($tmp) === 1)
|
||||
{
|
||||
$name = $data;
|
||||
}
|
||||
|
||||
$ret['title'] = ucfirst($name);
|
||||
$ret['width'] = 'auto';
|
||||
|
Reference in New Issue
Block a user