diff options
author | jeff <jeff> | 2007-01-06 00:47:55 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-01-06 00:47:55 +0000 |
commit | 704992901b980cd3d41568d7fec0842b2a64bdf7 (patch) | |
tree | 125d6f00906cf6161d1b32d2ae067618af811f1e /httemplate/edit | |
parent | 66bf9d2b3998894588d73a10a459aa1453283ef1 (diff) |
fix UI funkiness
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/part_svc.cgi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index ba152db9c..a2ceceda0 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -223,6 +223,11 @@ that field. % ' } else if ( f == "D" || f == "F" || f =="S" ) { //enable, text box', % " what.form.${layer}__${field}.disabled = false;". % " what.form.${layer}__${field}.style.backgroundColor = '#ffffff';". +% ' if ( f == "S" ) {'. +% " what.form.${layer}__${field}.multiple = true;". +% " } else {". +% " what.form.${layer}__${field}.multiple = false;". +% " }". % " what.form.${layer}__${field}.style.display = '';". % " if ( what.form.${layer}__${field}_classnum ) {". % " what.form.${layer}__${field}_classnum.disabled = false;". @@ -275,9 +280,7 @@ that field. % % } elsif ( $def->{type} eq 'select' ) { % -% $html .= qq!<SELECT NAME="${layer}__${field}" $disabled!; -% $html .= ' multiple' if $flag == 'S'; -% $html .= '>'; +% $html .= qq!<SELECT NAME="${layer}__${field}" $disabled>!; % $html .= '<OPTION> </OPTION>' unless $value; % if ( $def->{select_table} ) { % foreach my $record ( qsearch( $def->{select_table}, {} ) ) { |