From d5fd682985a2fe7f137893cc7ea5e78694aa6b9f Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Fri, 27 May 2011 14:58:57 +0000 Subject: [PATCH] * Console: Fix router.updateThroughProxy being set to false after saving change on /configupdate when install dir is read-only. (ticket #466) --- apps/routerconsole/jsp/configupdate.jsp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/routerconsole/jsp/configupdate.jsp b/apps/routerconsole/jsp/configupdate.jsp index 4b1bf4bc60..a3104e15fe 100644 --- a/apps/routerconsole/jsp/configupdate.jsp +++ b/apps/routerconsole/jsp/configupdate.jsp @@ -39,14 +39,16 @@ <td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" /></td></tr> <% if (updatehelper.canInstall()) { %> <tr><td class= "mediumtags" align="right"><b><%=formhandler._("Update policy")%>:</b></td> - <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" /></td> + <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" /></td></tr> + <% } // if canInstall %> <tr><td class= "mediumtags" align="right"><b><%=intl._("Update through the eepProxy?")%></b></td> <td><jsp:getProperty name="updatehelper" property="updateThroughProxy" /></td> </tr><tr><td class= "mediumtags" align="right"><b><%=intl._("eepProxy host")%>:</b></td> <td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" /></td> </tr><tr><td class= "mediumtags" align="right"><b><%=intl._("eepProxy port")%>:</b></td> - <td><input type="text" size="4" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td> - </tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Update URLs")%>:</b></td> + <td><input type="text" size="4" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td></tr> + <% if (updatehelper.canInstall()) { %> + <tr><td class= "mediumtags" align="right"><b><%=intl._("Update URLs")%>:</b></td> <td><textarea name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td> </tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Trusted keys")%>:</b></td> <td><textarea name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td> -- GitLab