summaryrefslogtreecommitdiff
path: root/httemplate/elements/checkbox.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/checkbox.html')
-rw-r--r--httemplate/elements/checkbox.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/elements/checkbox.html b/httemplate/elements/checkbox.html
index 51760701e..91efe8578 100644
--- a/httemplate/elements/checkbox.html
+++ b/httemplate/elements/checkbox.html
@@ -6,6 +6,7 @@
? ' CHECKED'
: ''
%>
+ <% $opt{disabled} %>
<% $onchange %>
><% $opt{'postfix'} %>
<%init>
@@ -16,4 +17,9 @@ my $onchange = $opt{'onchange'}
? 'onChange="'. $opt{'onchange'}. '(this)"'
: '';
+$opt{'disabled'} = &{ $opt{'disabled'} }( \%opt )
+ if ref($opt{'disabled'}) eq 'CODE';
+$opt{'disabled'} = 'DISABLED'
+ if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah?
+
</%init>