1
0
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:
Cameron
2014-11-13 19:37:37 -08:00
parent 2d00fb190e
commit cf15229e7c
3 changed files with 54 additions and 6 deletions

View File

@@ -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';