mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
X-editable added. FAQs admin-area modified to test. Handling of POST not done yet.
This commit is contained in:
@@ -215,6 +215,9 @@ class e_form
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$options = $this->format_options('text', $name, $options);
|
||||
//never allow id in format name-value for text fields
|
||||
return "<input type='text' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
|
||||
@@ -2026,6 +2029,12 @@ class e_form
|
||||
$value = "<a class='e-tip {$dialog}' href='".$link."' title='Quick View'>".$value."</a>";
|
||||
}
|
||||
|
||||
//XXX NEW Inline-editing support. Handling of $_POST not done yet.
|
||||
if(vartrue($parms['editable']))
|
||||
{
|
||||
$value = "<a class='e-tip e-editable'data-name='".$field."' title=\"".LAN_EDIT." ".$attributes['title']."\" data-type='text' data-pk='".$id."' data-url='".e_SELF."' href='#'>".$value."</a>";
|
||||
}
|
||||
|
||||
|
||||
$value = vartrue($parms['pre']).$value.vartrue($parms['post']);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user