1
0
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:
Cameron
2013-02-06 00:18:53 -08:00
parent 39e9b14cf6
commit d6a69a0ec3
8 changed files with 482 additions and 1 deletions

View File

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