luci-mod-admin-full: fix revert page
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 28 May 2018 12:42:10 +0000 (14:42 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 30 May 2018 12:59:24 +0000 (14:59 +0200)
This fix the strange redirect link, a bug with uwsgi where the controller
is empty and a bug with the revert page showing the apply content empty.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
[drop unrelated revert.html template change]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/view/admin_uci/changes.htm

index 9e9ce2be2ae03070efd96c79f3b32d3df06c3b38..c69ec1215a65f4e0d606e1470d52ba71895b605b 100644 (file)
@@ -36,7 +36,7 @@
 
        <div style="text-align:right">
                <input class="cbi-button cbi-button-save" type="button" id="apply_button" value="<%:Save & Apply%>" onclick="uci_apply(true); this.blur()" />
-               <form class="inline" method="post" action="<%=controller%>/admin/uci/revert">
+               <form class="inline" method="post" action="<%=url("admin/uci/revert")%>">
                        <input type="hidden" name="token" value="<%=token%>" />
                        <input type="hidden" name="redir" value="<%=pcdata(luci.http.formvalue("redir"))%>" />
                        <input class="cbi-button cbi-button-reset" type="submit" value="<%:Revert%>" />