[Rt-commit] r4627 - in rt/branches/3.7-EXPERIMENTAL:
html/Widgets/Form
alexmv at bestpractical.com
alexmv at bestpractical.com
Thu Mar 2 00:54:16 EST 2006
Author: alexmv
Date: Thu Mar 2 00:54:16 2006
New Revision: 4627
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean
Log:
r9405 at zoq-fot-pik: chmrr | 2006-03-02 00:54:08 -0500
* It's hard to do trinary operations with a checkbox; make it default
to the default.
Modified: rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean Thu Mar 2 00:54:16 2006
@@ -1,14 +1,15 @@
<div id="form-box-<% lc $Name %>">
<span class="description"><% $Description %></span>:
-<input type="checkbox" name="Boolean-<% $Name %>" <% $CurrentValue && 'checked' %>" />
+<input type="checkbox" name="Boolean-<% $Name %>" <% $value && 'checked' %>" />
</div>
<%INIT>
+my $value = defined $CurrentValue ? $CurrentValue : $EmptyValue;
</%INIT>
<%ARGS>
$Name => undef,
$Description => undef,
-
-$CurrentValue => 0,
+$EmptyValue => 0,
+$CurrentValue => undef,
</%ARGS>
<%METHOD Process>
More information about the Rt-commit
mailing list