From 5fe201989750b456cf6b7c036e3276c496b75f26 Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 15 Nov 2018 19:05:40 +0000 Subject: [PATCH] basic XHR --- apps/routerconsole/jsp/welcome.jsp | 7 +++++-- apps/routerconsole/jsp/welcomexhr1.jsp | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 apps/routerconsole/jsp/welcomexhr1.jsp diff --git a/apps/routerconsole/jsp/welcome.jsp b/apps/routerconsole/jsp/welcome.jsp index c9070d24b0..14e04a1a22 100644 --- a/apps/routerconsole/jsp/welcome.jsp +++ b/apps/routerconsole/jsp/welcome.jsp @@ -69,7 +69,7 @@ <% @@ -144,7 +144,10 @@ // Bandwidth test in progress (w/ AJAX) %>

<%=intl._t("Bandwidth Test in Progress")%>

-

Ajax TODO - wait 60 seconds then click next

+
+ +<%=intl._t("Javascript is disabled - wait 60 seconds for the bandwidth test to complete and then click Next")%> +
<% } else if (ipg == 5) { diff --git a/apps/routerconsole/jsp/welcomexhr1.jsp b/apps/routerconsole/jsp/welcomexhr1.jsp new file mode 100644 index 0000000000..737a786648 --- /dev/null +++ b/apps/routerconsole/jsp/welcomexhr1.jsp @@ -0,0 +1,16 @@ +<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><% + String i2pcontextId = request.getParameter("i2p.contextId"); + try { + if (i2pcontextId != null) { + session.setAttribute("i2p.contextId", i2pcontextId); + } else { + i2pcontextId = (String) session.getAttribute("i2p.contextId"); + } + } catch (IllegalStateException ise) {} + wizhelper.setContextId(i2pcontextId); + if (wizhelper.isNDTComplete()) { +%><%=wizhelper._t("Bandwidth test is complete, click Next")%><% + } else { +%><%=wizhelper._t("Bandwidth test in progress...")%><% + } +%>