mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
X-editable upgraded to v1.5.1. e-expandit class now uses slideToggle() jquery method. AdminUI: tag fields can now be edited inline even if empty.
This commit is contained in:
@@ -3239,14 +3239,24 @@ class e_form
|
||||
}
|
||||
|
||||
// in case something goes wrong...
|
||||
if($link) $value = "<a class='e-tip{$dialog}' {$ext} href='".$link."' {$modal} title='Quick View'>".$value."</a>";
|
||||
if($link) $value = "<a class='e-tip{$dialog}' {$ext} href='".$link."' {$modal} title='Quick View' >".$value."</a>";
|
||||
}
|
||||
|
||||
|
||||
if(empty($value))
|
||||
{
|
||||
$value = '-';
|
||||
$emptyValue = "data-value=''";
|
||||
}
|
||||
else
|
||||
{
|
||||
$emptyValue = "";
|
||||
}
|
||||
|
||||
|
||||
if(!vartrue($attributes['noedit']) && vartrue($parms['editable']) && !vartrue($parms['link'])) // avoid bad markup, better solution coming up
|
||||
{
|
||||
$mode = preg_replace('/[^\w]/', '', vartrue($_GET['mode'], ''));
|
||||
$value = "<a class='e-tip e-editable editable-click' data-name='".$field."' title=\"".LAN_EDIT." ".$attributes['title']."\" data-type='text' data-pk='".$id."' data-url='".e_SELF."?mode={$mode}&action=inline&id={$id}&ajax_used=1' href='#'>".$value."</a>";
|
||||
$value = "<a class='e-tip e-editable editable-click' data-emptytext='-' data-name='".$field."' title=\"".LAN_EDIT." ".$attributes['title']."\" data-type='text' data-pk='".$id."' ".$emptyValue." data-url='".e_SELF."?mode={$mode}&action=inline&id={$id}&ajax_used=1' href='#'>".$value."</a>";
|
||||
}
|
||||
|
||||
$value = vartrue($parms['pre']).$value.vartrue($parms['post']);
|
||||
|
Reference in New Issue
Block a user