mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 47505 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r47505 | ischommer | 2007-12-22 17:31:58 +1300 (Sat, 22 Dec 2007) | 1 line fixed maxlength mixups ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52190 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
230e77e712
commit
b08dba9173
@ -24,13 +24,13 @@ class TextField extends FormField {
|
||||
function Field() {
|
||||
$attributes = array(
|
||||
'type' => 'text',
|
||||
'class' => $this->extraClass() . " maxlength",
|
||||
'class' => $this->extraClass() . ' text',
|
||||
'id' => $this->id(),
|
||||
'name' => $this->attrName(),
|
||||
'value' => $this->attrValue(),
|
||||
'tabindex' => $this->getTabIndex(),
|
||||
'maxlength' => ($this->maxLength) ? $this->maxLength : null,
|
||||
'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : 30
|
||||
'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null
|
||||
);
|
||||
|
||||
return $this->createTag('input', $attributes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user