From 6f402df348017146e248ecaae2c71c0a9d708ea4 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 29 Apr 2010 07:40:47 +0000 Subject: communigate (phase 2): rules: adding conditions and actions to rule edit. RT#7514 --- httemplate/elements/input-text.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'httemplate/elements/input-text.html') 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). '"' : ''; -- cgit v1.2.1