summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2018-08-13 10:57:21 +0200
committerAnsuel Smith <ansuelsmth@gmail.com>2018-08-13 10:57:21 +0200
commit442ece768d36e8233c9dd3343844abf3caafddcf (patch)
tree359defb16e9f7e60ca1a08ebbde723f7020ba810 /modules/luci-mod-admin-full
parentbf123fb7c4918120f5f9f638866bfae1e5b23a54 (diff)
luci-mod-admin-full: applyreboot doesn't reload page
The applyreboot page doesn't reload the page onload of the loding gif. This adds the right function. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'modules/luci-mod-admin-full')
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm b/modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm
index 66b80896e..e235bd467 100644
--- a/modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm
+++ b/modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm
@@ -16,6 +16,7 @@
img.onload = function() {
window.clearInterval(interval);
+ window.location.replace(target);
};
img.src = target + '<%=resource%>/icons/loading.gif?' + Math.random();