[Jifty-commit] jifty branch, master, updated. c41ff6dab5371b716c401ca14b40532fa13b6588
Jifty commits
jifty-commit at lists.jifty.org
Wed Feb 3 01:37:20 EST 2010
The branch, master has been updated
via c41ff6dab5371b716c401ca14b40532fa13b6588 (commit)
from b0a8006ed25a0c4f6662fc411174acc4a991ab76 (commit)
Summary of changes:
lib/Jifty/Web/Form/Field.pm | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit c41ff6dab5371b716c401ca14b40532fa13b6588
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Feb 3 14:36:01 2010 +0800
small fix to avoid extra spaces
diff --git a/lib/Jifty/Web/Form/Field.pm b/lib/Jifty/Web/Form/Field.pm
index 8b9ac8a..5d6db4d 100644
--- a/lib/Jifty/Web/Form/Field.pm
+++ b/lib/Jifty/Web/Form/Field.pm
@@ -465,7 +465,7 @@ Renders a default CSS class for each part of our widget.
sub classes {
my $self = shift;
my $name = $self->name;
- return join(' ', ($self->class||''), ($name ? "argument-".$name : ''));
+ return join(' ', ($self->class||()), ($name ? "argument-".$name : ()));
}
@@ -613,10 +613,10 @@ sub _widget_class {
my $self = shift;
my @classes = ( 'widget',
$self->classes,
- ( $self->ajax_validates ? ' ajaxvalidation' : '' ),
- ( $self->ajax_canonicalizes ? ' ajaxcanonicalization' : '' ),
- ( $self->autocompleter ? ' ajaxautocompletes' : '' ),
- ( $self->focus ? ' focus' : ''),
+ ( $self->ajax_validates ? ' ajaxvalidation' : () ),
+ ( $self->ajax_canonicalizes ? ' ajaxcanonicalization' : () ),
+ ( $self->autocompleter ? ' ajaxautocompletes' : () ),
+ ( $self->focus ? ' focus' : ()),
@_ );
return qq! class="!. join(' ', at classes). qq!"!
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list