diff options
author | Zach LeBar <zach@zachlebar.com> | 2012-03-30 20:54:16 +0000 |
---|---|---|
committer | Zach LeBar <zach@zachlebar.com> | 2012-03-30 20:54:16 +0000 |
commit | 94d2fdb5e7dc424efa0409d2617d3241e4daaa35 (patch) | |
tree | f822bf61b370eb76a5bfe05de1e63a3cc2ef680e /chrony-keyfile-html.lsp | |
parent | c2efa6165c6ea2b1a8cf0a8bd7995d2094164d7a (diff) | |
download | acf-chrony-94d2fdb5e7dc424efa0409d2617d3241e4daaa35.tar.bz2 acf-chrony-94d2fdb5e7dc424efa0409d2617d3241e4daaa35.tar.xz |
Fixing acf-chrony to work with changes made to acf-core.
Removing the use of controllerfunctions.lua and using the new 'handle_form()' found in acf_www-controller.lua. Also using 'handle_form()' in place of 'redirect_to_referrer()'.
Diffstat (limited to 'chrony-keyfile-html.lsp')
-rw-r--r-- | chrony-keyfile-html.lsp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrony-keyfile-html.lsp b/chrony-keyfile-html.lsp index 50420b6..b90ee14 100644 --- a/chrony-keyfile-html.lsp +++ b/chrony-keyfile-html.lsp @@ -7,9 +7,12 @@ <DL> <% displayitem(form.value.status) - if form.value.status.errtxt then %> + if form.value.status.errtxt then + +%> <dt></dt><dd><form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/enablekeyfile") %>"> -<input class="submit" type="submit" value="Enable"></form></dd> +<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > +<input class="submit" type="submit" name="submit" value="Enable"></form></dd> <% end %> </DL> |