[Jifty-commit] r2272 - jifty/trunk/lib/Jifty/Web/Form
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Dec 2 23:09:53 EST 2006
Author: audreyt
Date: Sat Dec 2 23:09:53 2006
New Revision: 2272
Modified:
jifty/trunk/lib/Jifty/Web/Form/Field.pm
Log:
* The "length" attribute Web::Form::Field now also means HTML "maxlength"
in addition to "size".
Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm Sat Dec 2 23:09:53 2006
@@ -462,7 +462,7 @@
$field .= qq! id="@{[ $self->element_id ]}"!;
$field .= qq! value="@{[HTML::Entities::encode_entities($self->current_value)]}"! if defined $self->current_value;
$field .= $self->_widget_class;
- $field .= qq! size="@{[ $self->length() ]}"! if ($self->length());
+ $field .= qq! size="@{[ $self->length() ]}" maxlength=@{[ $self->length() ]}"! if ($self->length());
$field .= " " .$self->other_widget_properties;
$field .= qq! />\n!;
Jifty->web->out($field);
More information about the Jifty-commit
mailing list