luci-mod-admin-full: applyreboot doesn't reload page 2060/head
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 13 Aug 2018 08:57:21 +0000 (10:57 +0200)
committerAnsuel Smith <ansuelsmth@gmail.com>
Mon, 13 Aug 2018 08:57:21 +0000 (10:57 +0200)
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>
modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm

index 66b80896e8c4160db2cd60f09c923c9daa37fce9..e235bd467993315d3aa0805c25ca260e2fa3a030 100644 (file)
@@ -16,6 +16,7 @@
                
                                img.onload = function() {
                                        window.clearInterval(interval);
+                                       window.location.replace(target);
                                };
                                
                                img.src = target + '<%=resource%>/icons/loading.gif?' + Math.random();