projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Reboot pages
[project/luci.git]
/
modules
/
admin-mini
/
luasrc
/
view
/
mini
/
reboot.htm
diff --git
a/modules/admin-mini/luasrc/view/mini/reboot.htm
b/modules/admin-mini/luasrc/view/mini/reboot.htm
index
600da36
..
9bf2d43
100644
(file)
--- a/
modules/admin-mini/luasrc/view/mini/reboot.htm
+++ b/
modules/admin-mini/luasrc/view/mini/reboot.htm
@@
-17,7
+17,7
@@
$Id$
<h2><%:reboot%></h2>
<p><%:a_s_reboot1%></p>
<%-
<h2><%:reboot%></h2>
<p><%:a_s_reboot1%></p>
<%-
-local c = require("luci.model.uci").changes()
+local c = require("luci.model.uci").c
ursor():c
hanges()
if c and next(c) then
-%>
<p class="warning"><%:a_s_reboot_u%></p>
if c and next(c) then
-%>
<p class="warning"><%:a_s_reboot_u%></p>
@@
-25,9
+25,9
@@
if c and next(c) then
end
if not reboot then
-%>
end
if not reboot then
-%>
-<p><a href="<%=
controller%>/admin/system/reboot
?reboot=1"><%:a_s_reboot_do%></a></p>
+<p><a href="<%=
REQUEST_URI%>
?reboot=1"><%:a_s_reboot_do%></a></p>
<%- else -%>
<p><%:a_s_reboot_running%></p>
<%- else -%>
<p><%:a_s_reboot_running%></p>
-<script type="text/javascript">setTimeout("location='<%=controller%>
/admin
'", 60000)</script>
+<script type="text/javascript">setTimeout("location='<%=controller%>'", 60000)</script>
<%- end -%>
<%+footer%>
\ No newline at end of file
<%- end -%>
<%+footer%>
\ No newline at end of file