X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2Fedit.html;h=dced7a09b69b382403ad53a53f86f7a97ac61a9a;hb=6053a0a3a5baeb1c9f55e5df39bbc999c8ec8926;hp=a960172d71252c7a7acbe49fa1eb965e20481142;hpb=d5d62e40593d5153afd64527accad35b7f4fda2e;p=freeside.git diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index a960172d7..dced7a09b 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -515,12 +515,15 @@ Example: % } % foreach my $name_obj ( @existing ) { % +% my $m2_label = $f->{'m2_label'}; +% $m2_label = &{ $f->{'m2_label_callback'} }($name_obj) if $f->{'m2_label_callback'}; +% % my $ex_label = ' '. ($f->{'m2_label'} || $field ). ' '; +% '> '. ($m2_label || $field ). ' '; % % if ( $f->{'layer_values_callback'} ) { % my %switches = ( 'mode' => $mode ); @@ -637,7 +640,7 @@ Example: // only spawn if we're the last element... return if not - var field_regex = /(\d+)(_[a-z_]+)?$/; + var field_regex = /(\d+)(_[a-z_0-9]+)?$/; var match = field_regex.exec(what.name); if ( !match ) { alert(what.name + " didn't match for " + what); @@ -701,7 +704,7 @@ Example: var row = table.insertRow(<%$field%>_rownum++); - var label_cell = document.createElement('TD'); + var label_cell = document.createElement('TH'); label_cell.id = '<% $field %>_label' + <%$field%>_fieldnum;