diff options
author | ivan <ivan> | 2008-04-15 13:42:40 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-04-15 13:42:40 +0000 |
commit | 477015901c379f8cd6ba46cfaa4a9ae284ae582d (patch) | |
tree | f4307128f80570f1f9f38250fb1769e942ec4b99 /httemplate/elements/tr-input-text.html | |
parent | 22a294936609cfcb452742a158fafaa55d3a6fd1 (diff) |
new package editor
Diffstat (limited to 'httemplate/elements/tr-input-text.html')
-rw-r--r-- | httemplate/elements/tr-input-text.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/elements/tr-input-text.html b/httemplate/elements/tr-input-text.html index 49ae166ee..f71f2f7fb 100644 --- a/httemplate/elements/tr-input-text.html +++ b/httemplate/elements/tr-input-text.html @@ -35,6 +35,11 @@ my $maxlength = $opt{'maxlength'} ? 'MAXLENGTH="'. $opt{'maxlength'}. '"' : ''; +$opt{'disabled'} = &{ $opt{'disabled'} }( \%opt ) + if ref($opt{'disabled'}) eq 'CODE'; +$opt{'disabled'} = 'DISABLED' + if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah? + my @style = (); push @style, 'text-align: '. $opt{'text-align'} @@ -43,9 +48,6 @@ push @style, 'text-align: '. $opt{'text-align'} push @style, 'background-color: #dddddd' if $opt{'disabled'}; -$opt{'disabled'} = 'DISABLED' - if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah? - my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : ''; my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; |