diff options
author | ivan <ivan> | 2010-04-29 07:40:46 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-04-29 07:40:46 +0000 |
commit | 2ac302e18d723563692cdbbd74f3e9e5331a3014 (patch) | |
tree | ce25a3f91382098fa749f0d8c5dde7c77699b631 /httemplate/elements/input-text.html | |
parent | fa6176ab2df85c4b66026e9fe2a7242293d20ce5 (diff) |
communigate (phase 2): rules: adding conditions and actions to rule edit. RT#7514
Diffstat (limited to 'httemplate/elements/input-text.html')
-rw-r--r-- | httemplate/elements/input-text.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/httemplate/elements/input-text.html b/httemplate/elements/input-text.html index 9db0643..fb50a50 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). '"' : ''; |