projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
attempt fixing "multiple states" links, RT#13922
[freeside.git]
/
httemplate
/
elements
/
input-text.html
diff --git
a/httemplate/elements/input-text.html
b/httemplate/elements/input-text.html
index
9db0643
..
8279415
100644
(file)
--- a/
httemplate/elements/input-text.html
+++ b/
httemplate/elements/input-text.html
@@
-15,7
+15,9
@@
my %opt = @_;
my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
my $onchange = $opt{'onchange'}
my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
my $onchange = $opt{'onchange'}
- ? 'onChange="'. $opt{'onchange'}. '(this)"'
+ ? join(' ', map $_.'="'. $opt{'onchange'}. '(this)"',
+ qw( onChange onKeyDown onKeyUp onKeyPress )
+ )
: '';
my $size = $opt{'size'}
: '';
my $size = $opt{'size'}
@@
-31,13
+33,17
@@
$opt{'disabled'} = &{ $opt{'disabled'} }( \%opt )
$opt{'disabled'} = 'DISABLED'
if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah?
$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'
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). '"' : '';
my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : '';