From e3f8780934093cbf4618bfa39f69f25920dfb28e Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 22 Oct 2008 18:50:22 +0000 Subject: Modified viewfunctions to split displayform, creating displayformstart and displayformend, to provide flexibility while still using the library. Also added support for hidden fields - including a common redir field. Removed redirectOnSuccess from controllerfunctions handle_form, and replaced it with the redir field. Removed redirectOnSuccess from controllers that used it and added handlecommandresults and redir entries to links and forms throughout many views. This will cause a redirect to the originating view when a form is successfully completed. acf_www-controller now includes orig_action in page_info to report the original action launched by the user. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-edit-html.lsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tinydns-edit-html.lsp') 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) <% if form.value.filecontent.errtxt then %>

<%= string.gsub(form.value.filecontent.errtxt, "\n", "
") %>

<% end %> -
" method="POST"> +<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> +<% displayformstart(form) %>

Save and Apply Above Settings

-
-
+<% displayformend(form) %> -- cgit v1.2.3