luci-mod-admin-full: applyreboot doesn't reload page
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 13 Aug 2018 08:57:21 +0000 (10:57 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 16 Aug 2018 08:52:22 +0000 (10:52 +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>
(cherry picked from commit 442ece768d36e8233c9dd3343844abf3caafddcf)

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();