mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 49161 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r49161 | ischommer | 2008-02-07 14:25:07 +1300 (Thu, 07 Feb 2008) | 1 line avoid double escaping through attr*() and raw2att in createTag() ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52407 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
15b3fb02b4
commit
4f46aff087
@ -48,8 +48,8 @@ class AjaxUniqueTextField extends TextField {
|
||||
'type' => 'text',
|
||||
'class' => $this->extraClass() . " text",
|
||||
'id' => $this->id(),
|
||||
'name' => $this->attrName(),
|
||||
'value' => $this->attrValue(),
|
||||
'name' => $this->Name(),
|
||||
'value' => $this->Value(),
|
||||
'tabindex' => $this->getTabIndexHTML(),
|
||||
'maxlength' => ($this->maxLength) ? $this->maxLength : null
|
||||
);
|
||||
|
@ -33,7 +33,7 @@ class AutocompleteTextField extends TextField {
|
||||
'type' => 'text',
|
||||
'id' => $this->id(),
|
||||
'name' => $this->name,
|
||||
'value' => $this->attrValue(),
|
||||
'value' => $this->Value(),
|
||||
'tabindex' => $this->getTabIndexHTML(),
|
||||
'size' => $this->maxLength ? min( $this->maxLength, 30 ) : 30
|
||||
);
|
||||
|
@ -24,7 +24,7 @@ class CheckboxField extends FormField {
|
||||
'type' => 'checkbox',
|
||||
'class' => $this->extraClass(),
|
||||
'id' => $this->id(),
|
||||
'name' => $this->attrName(),
|
||||
'name' => $this->Name(),
|
||||
'value' => 1,
|
||||
'tabindex' => $this->getTabIndexHTML(),
|
||||
'checked' => $this->value ? "checked=\"checked\"" : '',
|
||||
|
@ -19,7 +19,7 @@ class CheckboxFieldDisabled extends CheckboxField {
|
||||
'type' => 'checkbox',
|
||||
'class' => $this->extraClass() . " text",
|
||||
'id' => $this->id(),
|
||||
'name' => $this->attrName(),
|
||||
'name' => $this->Name(),
|
||||
'tabindex' => $this->getTabIndexHTML(),
|
||||
'checked' => ($this->value) ? 'checked' : false,
|
||||
'disabled' => 'disabled'
|
||||
|
@ -30,7 +30,7 @@ class ConfirmedFormAction extends FormAction {
|
||||
'type' => 'submit',
|
||||
'class' => $this->extraClass(),
|
||||
'id' => $this->id(),
|
||||
'name' => $this->attrName(),
|
||||
'name' => $this->Name(),
|
||||
'value' => $this->attrTitle(),
|
||||
'tabindex' => $this->getTabIndexHTML(),
|
||||
'onclick' => "return confirm('$this->confirmation');"
|
||||
|
@ -26,8 +26,8 @@ class TextField extends FormField {
|
||||
'type' => 'text',
|
||||
'class' => $this->extraClass() . ' text',
|
||||
'id' => $this->id(),
|
||||
'name' => $this->attrName(),
|
||||
'value' => $this->attrValue(),
|
||||
'name' => $this->Name(),
|
||||
'value' => $this->Value(),
|
||||
'tabindex' => $this->getTabIndex(),
|
||||
'maxlength' => ($this->maxLength) ? $this->maxLength : null,
|
||||
'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null
|
||||
|
Loading…
x
Reference in New Issue
Block a user