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>
(cherry picked from commit 442ece768d)
This commit is contained in:
Ansuel Smith 2018-08-13 10:57:21 +02:00 committed by Jo-Philipp Wich
parent e0599d5064
commit f4da0b8cfb

View file

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