From: wreis Date: Thu, 24 Jul 2008 22:43:08 +0000 (+0000) Subject: fixed field_class X-Git-Tag: v0.002000~246 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=59554696822bbb17ab76b895089dfa61e0bb3650;hp=8d06fb1f1f13c9576bdd842262538aa50568dead;p=catagits%2FReaction.git fixed field_class --- diff --git a/lib/Reaction/UI/Widget/Field/Mutable.pm b/lib/Reaction/UI/Widget/Field/Mutable.pm index 15f6a04..6e6674c 100644 --- a/lib/Reaction/UI/Widget/Field/Mutable.pm +++ b/lib/Reaction/UI/Widget/Field/Mutable.pm @@ -6,12 +6,9 @@ class Mutable is 'Reaction::UI::Widget::Field', which { before fragment widget { arg 'field_id' => event_id 'value_string'; - my $field_name = event_id 'value_string' unless defined $_{field_name}; - arg 'field_name' => $field_name; + arg 'field_name' => event_id 'value_string' unless defined $_{field_name}; arg 'field_type' => 'text'; - my $field_class = $field_name; - $field_class =~ s/\d\-//; - arg 'field_class' => $field_class; + arg 'field_class' => "action-field " . $_{viewport}->name; # these two are to fire force_events in viewports # where you can end up without an event for e.g.