X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fcheckbox.html;h=91efe85782c2624629d13abcd6d0998d0879c8c3;hp=51760701e604fd90aa81090548864c8a8e615021;hb=c7bf005860b761a55ca075df987fb3b5ade8c242;hpb=6b4fe3354a905755f9e6f1810cf94bbc269ce81d 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? +