diff options
author | Zach LeBar <zach@zachlebar.com> | 2012-03-22 20:08:30 +0000 |
---|---|---|
committer | Zach LeBar <zach@zachlebar.com> | 2012-03-22 20:08:30 +0000 |
commit | b1d62376783a9b449ad13c5000f35eaa9a87662c (patch) | |
tree | c16296229b41ce14626425843ebc3397b35c901b /apk-expert-html.lsp | |
parent | d6df1a0c206b2f2f979f15b2619a6e221ff39019 (diff) | |
download | acf-apk-tools-b1d62376783a9b449ad13c5000f35eaa9a87662c.tar.bz2 acf-apk-tools-b1d62376783a9b449ad13c5000f35eaa9a87662c.tar.xz |
Changed apk-controller.lua to use new handle_form() functions found in acf_www-controller.lua instead of the controllerfunctions.lua version and also instead of redirect_to_referrer(). Made corresponding changes to apk-model.lua to make everything work.HEADmaster
Diffstat (limited to 'apk-expert-html.lsp')
-rw-r--r-- | apk-expert-html.lsp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apk-expert-html.lsp b/apk-expert-html.lsp index 44b4b48..735d1a5 100644 --- a/apk-expert-html.lsp +++ b/apk-expert-html.lsp @@ -14,11 +14,17 @@ func(form, viewlibrary, page_info, session) <DL> <% if viewlibrary.check_permission("updateall") then %> <DT>Update Index</DT> - <DD><form action="updateall" method="POST"><input class="submit" type="submit" value="Update"></form></DD> + <DD><form action="updateall" method="POST"> + <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > + <input class="submit" type="submit" name="submit" value="Update"> + </form></DD> <% end %> <% if viewlibrary.check_permission("upgradeall") then %> <DT>Upgrade All</DT> - <DD><form action="upgradeall" method="POST"><input class="submit" type="submit" value="Upgrade"></form></DD> + <DD><form action="upgradeall" method="POST"> + <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > + <input class="submit" type="submit" name="submit" value="Upgrade"> + </form></DD> <% end %> </DL> <% end %> |