summaryrefslogtreecommitdiffstats
path: root/did-assigndefinition-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'did-assigndefinition-html.lsp')
-rw-r--r--did-assigndefinition-html.lsp10
1 files changed, 5 insertions, 5 deletions
diff --git a/did-assigndefinition-html.lsp b/did-assigndefinition-html.lsp
index 00c896b..14ff279 100644
--- a/did-assigndefinition-html.lsp
+++ b/did-assigndefinition-html.lsp
@@ -69,15 +69,13 @@
});
</script>
-<% if form.descr or form.errtxt then
+<% if form.descr then
session.didresult = form.descr
form.descr = nil
end %>
<% if session.didresult or form.errtxt then %>
<H1>Last Result</H1><DL>
-<% if session.didresult then %>
-<P CLASS="descr"><%= string.gsub(html.html_escape(session.didresult), "\n", "<BR>") %></P>
-<% else
+<% if form.errtxt then
io.write('<P CLASS="error">' .. string.gsub(html.html_escape(form.errtxt), "\n", "<BR>") .. " " .. html.html_escape(form.value.did.value) .. "<BR>\n")
for name,val in pairs(form.value) do
if val.errtxt then
@@ -86,7 +84,9 @@ end %>
end
io.write("</P>\n")
form.errtxt = nil
-end %>
+else %>
+<P CLASS="descr"><%= string.gsub(html.html_escape(session.didresult), "\n", "<BR>") %></P>
+<% end %>
</DL>
<% end %>