diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHandler.java index 64c96cfdf..3aa0dd90e 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHandler.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHandler.java @@ -31,7 +31,17 @@ public class ConfigStatsHandler extends FormHandler { public void setFilename(String filename) { _filename = (filename != null ? filename.trim() : null); } - + + public void setStatList(String stats[]) { + if (stats != null) { + for (int i = 0; i < stats.length; i++) { + String cur = stats[i].trim(); + if ( (cur.length() > 0) && (!_stats.contains(cur)) ) + _stats.add(cur); + } + } + } + public void setStatList(String stat) { if (stat != null) { if (stat.indexOf(',') != -1) { @@ -48,15 +58,6 @@ public class ConfigStatsHandler extends FormHandler { } } } - public void setStatList(String stats[]) { - if (stats != null) { - for (int i = 0; i < stats.length; i++) { - String cur = stats[i].trim(); - if ( (cur.length() > 0) && (!_stats.contains(cur)) ) - _stats.add(cur); - } - } - } public void setExplicitFilter(String foo) { _explicitFilter = true; } public void setExplicitFilterValue(String filter) { _explicitFilterValue = filter; } diff --git a/apps/routerconsole/jsp/configstats.jsp b/apps/routerconsole/jsp/configstats.jsp index 50d9de5ac..dc6ab4fe0 100644 --- a/apps/routerconsole/jsp/configstats.jsp +++ b/apps/routerconsole/jsp/configstats.jsp @@ -5,32 +5,53 @@ I2P Router Console - config stats - - + <%@include file="nav.jsp" %> <%@include file="summary.jsp" %> @@ -53,17 +74,17 @@ function toggleAll(category) { " /> Stat file:
- Filter: (toggle all)
+ Filter: (toggle all)
<% while (statshelper.hasMoreStats()) { while (statshelper.groupRequired()) { %> <% } // end iterating over required groups for the current stat %> <% @@ -80,4 +101,4 @@ function toggleAll(category) { - + \ No newline at end of file diff --git a/history.txt b/history.txt index a801b0815..6471df13b 100644 --- a/history.txt +++ b/history.txt @@ -1,4 +1,12 @@ -$Id: history.txt,v 1.211 2005/07/13 13:20:43 jrandom Exp $ +$Id: history.txt,v 1.212 2005/07/13 15:07:32 jrandom Exp $ + +2005-07-15 cervantes + * Added workaround for an odd win32 bug in the stats configuration + console page which meant only the first checkbox selection was saved. + +2005-07-15 Romster + * Added per group selection toggles in the stats configuration console + page. 2005-07-13 jrandom * Fixed a recently injected bug in the multitransport bidding which had diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index 8e116af44..51b2927ff 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -15,9 +15,9 @@ import net.i2p.CoreVersion; * */ public class RouterVersion { - public final static String ID = "$Revision: 1.202 $ $Date: 2005/07/13 13:20:43 $"; + public final static String ID = "$Revision: 1.203 $ $Date: 2005/07/13 15:07:32 $"; public final static String VERSION = "0.5.0.7"; - public final static long BUILD = 14; + public final static long BUILD = 15; public static void main(String args[]) { System.out.println("I2P Router version: " + VERSION); System.out.println("Router ID: " + RouterVersion.ID);
<%=statshelper.getCurrentGroupName()%> - + (toggle all)
- checked="true" <% } %>/> <%=statshelper.getCurrentStatName()%>:
<%=statshelper.getCurrentStatDescription()%>