fixed field_class
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / Mutable.pm
index 15f6a04..6e6674c 100644 (file)
@@ -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.