Ignore:
Timestamp:
Nov 14, 2018 2:48:10 PM (21 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
dc343b0
Parents:
a35ad5f
Message:

MLab/NDT: Prep for connecting to wizard, fixes, cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/welcome.jsp

    ra35ad5f r6462e2a  
    4343        // redirect to /home
    4444        response.setStatus(307);
     45        response.setHeader("Cache-Control","no-cache");
    4546        String req = request.getRequestURL().toString();
    4647        int slash = req.indexOf("/welcome");
     
    6465<script type="text/javascript">
    6566  var failMessage = "<hr><b><%=intl._t("Router is down")%><\/b>";
    66   function requestAjax1() { ajax("/welcomexhr.jsp?requestURI=<%=request.getRequestURI()%>", "xhr", "1000"); }
    67   function initAjax() { setTimeout(requestAjax1, <%=intl.getRefresh()%>000);  }
     67  function requestAjax1() { ajax("/welcomexhr.jsp", "xhr", "1000"); }
     68  function initAjax() { setTimeout(requestAjax1, "1000");  }
    6869</script>
    6970<%
     
    8485<h2><%=intl._t("New Install Wizard")%> <%=ipg%>/<%=LAST_PAGE%></h2>
    8586<div id="wizard">
    86 <jsp:useBean class="net.i2p.router.web.helpers.WizardHandler" id="formhandler" scope="request" />
     87<%--
     88    // note that for the handler we use a session scope, not a page scope,
     89    // so that we can access the NDT test results.
     90    // The MLabHelper singleton will prevent multiple simultaneous tests, even across sessions.
     91--%>
     92<jsp:useBean class="net.i2p.router.web.helpers.WizardHandler" id="formhandler" scope="session" />
    8793<%@include file="formhandler.jsi" %>
    8894<form action="" method="POST">
Note: See TracChangeset for help on using the changeset viewer.