From 442ece768d36e8233c9dd3343844abf3caafddcf Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Mon, 13 Aug 2018 10:57:21 +0200 Subject: [PATCH] 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 --- .../luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm | 1 + 1 file changed, 1 insertion(+) 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 66b80896e8..e235bd4679 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(); -- 2.30.2