diff options
Diffstat (limited to 'tinydns-edit-html.lsp')
-rw-r--r-- | tinydns-edit-html.lsp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp index a4754e1..f8d8dbb 100644 --- a/tinydns-edit-html.lsp +++ b/tinydns-edit-html.lsp @@ -123,7 +123,7 @@ } file = file + elem.text() + "\n"; }); - $("input:eq(1)").val(file); + $("input[name='filecontent']").val(file); } $(function(){ @@ -168,9 +168,9 @@ displayitem(form.value.mtime) </TABLE> <% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(form.value.filecontent.errtxt, "\n", "<BR>") %></P><% end %> -<form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>" method="POST"> +<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> +<% displayformstart(form) %> <input type="hidden" name="filename" value="<%= form.value.filename.value %>"> <input type="hidden" name="filecontent" value="<%= html.html_escape(form.value.filecontent.value) %>"> <H2>Save and Apply Above Settings</H2> -<DL><DT></DT><DD><input class="submit" type="submit" name="<%= form.option %>" value="<%= form.option %>"></DD></DL> -</form> +<% displayformend(form) %> |