diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-03-11 02:17:31 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-03-11 02:17:31 +0000 |
commit | 881dd5577887267d76437631ccd0f456d56f9d99 (patch) | |
tree | bbf9ddb4847b96cc22ce21b991e19875f379cb0d /lib/Reaction/UI/Widget/Field | |
parent | 6447c1ddad112023156da4243e9123b9877c839f (diff) | |
download | reaction-881dd5577887267d76437631ccd0f456d56f9d99.tar.gz reaction-881dd5577887267d76437631ccd0f456d56f9d99.zip |
special exists event, force_events
Diffstat (limited to 'lib/Reaction/UI/Widget/Field')
-rw-r--r-- | lib/Reaction/UI/Widget/Field/Mutable.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Reaction/UI/Widget/Field/Mutable.pm b/lib/Reaction/UI/Widget/Field/Mutable.pm index 98d7e9b..c4d2e44 100644 --- a/lib/Reaction/UI/Widget/Field/Mutable.pm +++ b/lib/Reaction/UI/Widget/Field/Mutable.pm @@ -8,6 +8,13 @@ class Mutable is 'Reaction::UI::Widget::Field', which { arg 'field_id' => event_id 'value_string'; arg 'field_name' => event_id 'value_string' unless defined $_{field_name}; arg 'field_type' => 'text'; + + # these two are to fire force_events in viewports + # where you can end up without an event for e.g. + # HTML checkbox fields + + arg 'exists_event' => event_id 'exists'; + arg 'exists_value' => 1; }; implements fragment message_fragment { |