fix collapsing table behavior on i2ptunnel edit pages

This commit is contained in:
hankhill19580
2020-05-01 23:33:09 +00:00
parent 278090a772
commit bef9ea11bf
2 changed files with 36 additions and 39 deletions

View File

@ -865,9 +865,6 @@
<%=intl._t("Server Throttling")%>
</th>
</tr><tr>
<td id="throttle" colspan="8">
<table id="throttler">
<tr>
<th colspan="5">
<%=intl._t("Inbound connection limits (0=unlimited)")%>
</th>
@ -901,9 +898,6 @@
<td></td><td>
<input type="text" name="maxStreams" title="<%=intl._t("Maximum number of simultaneous client connections")%>" value="<%=editBean.getMaxStreams(curTunnel)%>" class="freetext" />
</td><td></td><td></td><td class="blankColumn"></td>
</tr>
</table>
</td>
</tr><tr>
<th colspan="5">
<%=intl._t("POST limits (0=unlimited)")%>

View File

@ -35,6 +35,9 @@ hideableTables.forEach(function(configTable) {
if (i >= minRow) {
if (row.classList.contains("tunnelConfigExpanded")) {
hideRow(row)
row.querySelectorAll("th").forEach(function(configRow) {
configRow.classList.remove('tunnelConfigExpanded');
});
configTable.classList.remove('tunnelConfigExpanded');
row.classList.remove('tunnelConfigExpanded');
} else {