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