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>
This commit is contained in:
parent
89f270466c
commit
2826426c6a
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue