default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / elements / input-text.html
index fb50a50..18272eb 100644 (file)
@@ -5,6 +5,7 @@
                            <% $size %>
                            <% $maxlength %>
                            <% $style %>
+                           <% $opt{autocomplete} ? 'autocomplete="off"' : '' %>
                            <% $opt{disabled} %>
                            <% $onchange %>
                     ><% $opt{'postfix'} %>
@@ -15,7 +16,9 @@ my %opt = @_;
 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'}