[freeside-commits] freeside/httemplate/edit part_svc.cgi,1.54,1.55

Jeff Finucane,420,, jeff at wavetail.420.am
Fri Jan 5 16:47:57 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv29371

Modified Files:
	part_svc.cgi 
Log Message:
fix UI funkiness

Index: part_svc.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_svc.cgi,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- part_svc.cgi	29 Dec 2006 08:51:32 -0000	1.54
+++ part_svc.cgi	6 Jan 2007 00:47:55 -0000	1.55
@@ -223,6 +223,11 @@
 %            '    } 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 @@
 %
 %        } 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}, {} ) ) {



More information about the freeside-commits mailing list