luci-base: sysauth.htm: switch https detection URL
authorJo-Philipp Wich <jo@mein.io>
Mon, 11 Oct 2021 18:36:44 +0000 (20:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 12 Oct 2021 21:05:22 +0000 (23:05 +0200)
The `up.gif` icon is not present by default anymore, it has been moved to
luci-compat. Probe loading.gif instead which is guaranteed to be available
by default.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ea9b5e87e6ec3fbab52a02ab5f18bb51292bd249)

modules/luci-base/luasrc/view/sysauth.htm

index 0bca0af5ec664bc3747b6c08153689a432a30980..acd5ff7e38f9c3c407958a3249c85ffa61115e37 100644 (file)
@@ -63,7 +63,7 @@ if https_port and fs.access(https_key) then
                var url = 'https://' + window.location.hostname + ':' + '<%=https_port%>' + window.location.pathname;
                var img=new Image;
                img.onload=function(){window.location = url};
-               img.src='https://' + window.location.hostname + ':' + '<%=https_port%>' + '<%=resource%>/cbi/up.gif?' + Math.random();;
+               img.src='https://' + window.location.hostname + ':' + '<%=https_port%>' + '<%=resource%>/icons/loading.gif?' + Math.random();
                setTimeout(function(){
                        img.src=''
                }, 5000);