I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 7dd03fda authored by str4d's avatar str4d
Browse files

Added a Previous page button

At present the ?page= in the URL isn't affected, which could possibly
confuse users - maybe move to having the page variable as a POST variable
so the url is just always /i2ptunnel/wizard
parent c62254da
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,12 @@ ...@@ -19,6 +19,12 @@
curPage = 1; curPage = 1;
} }
} }
if ("Previous page".equals(request.getParameter("action") {
curPage = curPage - 2;
if (curPage <= 0) {
curPage = 1;
}
}
boolean tunnelIsClient = Boolean.valueOf(request.getParameter("isClient")); boolean tunnelIsClient = Boolean.valueOf(request.getParameter("isClient"));
String tunnelType = request.getParameter("type"); String tunnelType = request.getParameter("type");
%> %>
...@@ -316,6 +322,9 @@ http://i2jump.i2p/" /><% ...@@ -316,6 +322,9 @@ http://i2jump.i2p/" /><%
<div class="footer"> <div class="footer">
<div class=toolbox"> <div class=toolbox">
<button id="controlCancel" class="control" type="submit" name="action" value="" title="Cancel"><%=intl._("Cancel")%></button> <button id="controlCancel" class="control" type="submit" name="action" value="" title="Cancel"><%=intl._("Cancel")%></button>
<% if (curPage != 1) {
%><button id="controlPrevious" accesskey="P" class="control" type="submit" name="action" value="Previous page" title="Previous Page"><%=intl._("Previous")%>(<span class="accessKey">P</span>)</button><%
} %>
<% if (curPage == 7) { <% if (curPage == 7) {
%><button id="controlFinish" accesskey="F" class="control" type="submit" name="action" value="Save changes" title="Finish Wizard"><%=intl._("Finish")%>(<span class="accessKey">F</span>)</button><% %><button id="controlFinish" accesskey="F" class="control" type="submit" name="action" value="Save changes" title="Finish Wizard"><%=intl._("Finish")%>(<span class="accessKey">F</span>)</button><%
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment