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:
Ingo Schommer 2008-04-09 11:21:22 +00:00
parent 15b3fb02b4
commit 4f46aff087
6 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

@ -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\"" : '',

View File

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

View File

@ -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');"

View File

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