From: Ansuel Smith Date: Mon, 13 Aug 2018 08:57:21 +0000 (+0200) Subject: luci-mod-admin-full: applyreboot doesn't reload page X-Git-Url: http://git.openwrt.org/project/luci.git?a=commitdiff_plain;h=442ece768d36e8233c9dd3343844abf3caafddcf;p=project%2Fluci.git 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 --- 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();