Author: nextgens
Date: 2007-03-04 15:15:38 +0000 (Sun, 04 Mar 2007)
New Revision: 11953
Modified:
trunk/freenet/src/freenet/clients/http/PluginToadlet.java
trunk/freenet/src/freenet/clients/http/PproxyToadlet.java
Log:
Load plugins' web interface as a popup insteed of replacing fproxy
Modified: trunk/freenet/src/freenet/clients/http/PluginToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PluginToadlet.java 2007-03-04
00:09:42 UTC (rev 11952)
+++ trunk/freenet/src/freenet/clients/http/PluginToadlet.java 2007-03-04
15:15:38 UTC (rev 11953)
@@ -212,7 +212,7 @@
tableRow.addChild("td", plugin.getPluginName());
tableRow.addChild("td", internalName);
if (plugin instanceof HttpPlugin) {
- tableRow.addChild("td").addChild("form", new
String[] { "action", "method" }, new String[] { internalName, "get"
}).addChild("input", new String[] { "type", "value" }, new String[] { "submit",
"Visit" });
+ tableRow.addChild("td").addChild("form", new
String[] { "action", "method", "target" }, new String[] { internalName, "get",
"_new" }).addChild("input", new String[] { "type", "value" }, new String[] {
"submit", "Visit" });
} else {
tableRow.addChild("td");
}
Modified: trunk/freenet/src/freenet/clients/http/PproxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PproxyToadlet.java 2007-03-04
00:09:42 UTC (rev 11952)
+++ trunk/freenet/src/freenet/clients/http/PproxyToadlet.java 2007-03-04
15:15:38 UTC (rev 11953)
@@ -190,7 +190,7 @@
pluginRow.addChild("td", new
Date(pi.getStarted()).toString());
HTMLNode actionCell =
pluginRow.addChild("td");
if (pi.isPproxyPlugin()) {
- HTMLNode visitForm =
actionCell.addChild("form", new String[] { "method", "action" }, new String[] {
"get", pi.getPluginClassName() });
+ HTMLNode visitForm =
actionCell.addChild("form", new String[] { "method", "action", "target" }, new
String[] { "get", pi.getPluginClassName(), "_new" });
visitForm.addChild("input", new
String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword",
core.formPassword });
visitForm.addChild("input", new
String[] { "type", "value" }, new String[] { "submit", "Visit" });
}