X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Finput-text.html;fp=httemplate%2Felements%2Finput-text.html;h=fb50a5070a6eae0611974f459db8db206d572175;hb=2ac302e18d723563692cdbbd74f3e9e5331a3014;hp=9db064348849ff6575d5770a11b619221858d537;hpb=fa6176ab2df85c4b66026e9fe2a7242293d20ce5;p=freeside.git diff --git a/httemplate/elements/input-text.html b/httemplate/elements/input-text.html index 9db064348..fb50a5070 100644 --- a/httemplate/elements/input-text.html +++ b/httemplate/elements/input-text.html @@ -31,13 +31,17 @@ $opt{'disabled'} = &{ $opt{'disabled'} }( \%opt ) $opt{'disabled'} = 'DISABLED' if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah? -my @style = (); +my @style = ref($opt{'style'}) + ? @{ $opt{'style'} } + : $opt{'style'} + ? ( $opt{'style'} ) + : (); push @style, 'text-align: '. $opt{'text-align'} if $opt{'text-align'}; push @style, 'background-color: #dddddd' - if $opt{'disabled'}; + if $opt{'disabled'} && ! $opt{'nodarken_disabled'}; my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : '';