X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2Fedit.html;h=a32e99c0c189e3ee5f78cc859467521c81e0d20d;hp=53f68cac584aed23ce0b1f6ed82b7b8dfdac8f8d;hb=dac9051f94d03903c00a46117f6edf8315ec57dc;hpb=d03d9432be02de2abb9ff3d978ad1bdd67ea89d9 diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 53f68cac5..a32e99c0c 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;