diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-26 18:20:17 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-26 18:20:22 +0100 |
commit | 2826426c6a518867d695f05e514e41703deac3a1 (patch) | |
tree | c9e28819756a5ff2ee4c80ee25ee8b50643b68f7 | |
parent | 89f270466c8ecaf38a36174883abb1f11bcbadf6 (diff) |
base: trigger page reload with cbi reset button
Many complex widgets do not reset properly with traditional form reset,
therfore simply reload the page.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r-- | modules/base/luasrc/view/cbi/footer.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/luasrc/view/cbi/footer.htm b/modules/base/luasrc/view/cbi/footer.htm index 2c34028e5..115250a82 100644 --- a/modules/base/luasrc/view/cbi/footer.htm +++ b/modules/base/luasrc/view/cbi/footer.htm @@ -16,7 +16,7 @@ <input class="cbi-button cbi-button-save" type="submit" value="<%:Save%>" /> <% end %> <% if not flow.hideresetbtn then %> - <input class="cbi-button cbi-button-reset" type="reset" value="<%:Reset%>" /> + <input class="cbi-button cbi-button-reset" type="button" value="<%:Reset%>" onclick="location.href='<%=REQUEST_URI%>'" /> <% end %> <script type="text/javascript">cbi_d_update();</script> |