diff --git a/apps/i2ptunnel/jsp/wizard.jsp b/apps/i2ptunnel/jsp/wizard.jsp index c7852a11b7fee5d384e9b0ea66582c790130a7bf..150a961041a6a0b0825025c704c32cd90edd0a6c 100644 --- a/apps/i2ptunnel/jsp/wizard.jsp +++ b/apps/i2ptunnel/jsp/wizard.jsp @@ -19,6 +19,12 @@ curPage = 1; } } + if ("Previous page".equals(request.getParameter("action") { + curPage = curPage - 2; + if (curPage <= 0) { + curPage = 1; + } + } boolean tunnelIsClient = Boolean.valueOf(request.getParameter("isClient")); String tunnelType = request.getParameter("type"); %> @@ -316,6 +322,9 @@ http://i2jump.i2p/" /><% <div class="footer"> <div class=toolbox"> <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) { %><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 {