Author: toad
Date: 2009-01-06 20:42:58 +0000 (Tue, 06 Jan 2009)
New Revision: 24934
Modified:
trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
Log:
Fix some links in generated content.
Fix restart form.
Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2009-01-06
20:34:07 UTC (rev 24933)
+++ trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2009-01-06
20:42:58 UTC (rev 24934)
@@ -72,8 +72,8 @@
if (node.isUsingWrapper()) {
alertNode.addChild("br");
HTMLNode restartForm =
alertNode.addChild("form", //
- new String[] { "action",
"method" },//
- new String[] { "/", "get" });
+ new String[] { "action",
"method", "enctype" },//
+ new String[] { "/", "post",
"multipart/form-data" });
restartForm.addChild("div");
restartForm.addChild("input",//
new String[] { "type", "name"
},//
@@ -297,9 +297,7 @@
if (node.isUsingWrapper()) {
content.addChild("br");
- HTMLNode restartForm =
content.addChild("form",//
- new String[] { "action",
"method" }, new String[] { "/", "get" }//
- ).addChild("div");
+ HTMLNode restartForm =
ctx.addFormChild(content, "/", "restartForm").addChild("div");
restartForm.addChild("input",//
new String[] { "type", "name"
},//
new String[] { "hidden",
"restart" });
@@ -364,7 +362,7 @@
HTMLNode navigationBar =
ctx.getPageMaker().getInfobox("navbar", l10n("configNavTitle"));
HTMLNode navigationContent =
ctx.getPageMaker().getContentNode(navigationBar).addChild("ul");
if(!L10n.getSelectedLanguage().equals(L10n.LANGUAGE.getDefault()))
- navigationContent.addChild("a", "href",
TranslationToadlet.TOADLET_URL, l10n("contributeTranslation"));
+ navigationContent.addChild("a", "href",
ctx.fixLink(TranslationToadlet.TOADLET_URL), l10n("contributeTranslation"));
HTMLNode navigationTable =
navigationContent.addChild("table", "class", "config_navigation");
HTMLNode navigationTableRow =
navigationTable.addChild("tr");
HTMLNode nextTableCell = navigationTableRow;
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs