summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httemplate/edit/elements/edit.html5
-rw-r--r--httemplate/elements/tr-select-agent.html3
2 files changed, 6 insertions, 2 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 94bf1a5ed..537645e3e 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -286,7 +286,7 @@ Example:
% $g_row++ if $type eq 'title';
% } else {
% if ( $type eq 'columnstart' ) {
-% push @g_row_stack, $g_row++;
+% push @g_row_stack, $g_row;
% $g_row = 0;
% #} elsif ( $type eq 'columnnext' ) {
% } elsif ( $type eq 'columnend' ) {
@@ -379,7 +379,8 @@ Example:
<SCRIPT TYPE="text/javascript">
- var <%$field%>_rownum = <% $g_row - 1 %>;
+ var <%$field%>_rownum = <% $g_row %>;
+% warn "g_row $g_row\n";
var <%$field%>_fieldnum = <% $fieldnum %>;
function spawn_<%$field%>(what) {
diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html
index 69cd95cb0..44df3fc7d 100644
--- a/httemplate/elements/tr-select-agent.html
+++ b/httemplate/elements/tr-select-agent.html
@@ -2,6 +2,9 @@
<INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'agentnum' %>" VALUE="<% $agents[0]->agentnum %>">
+%# YUCK. empty row so we don't throw g_row in edit.html off :/
+ <TR>
+ </TR>
% } else {
<TR>