Author: dbkr
Date: 2008-05-05 15:26:23 +0000 (Mon, 05 May 2008)
New Revision: 19770

Modified:
   trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
Log:
Show the 'Re-add the default bookmark set' on a POST-result form to keep the 
interface consistent.


Modified: trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java   
2008-05-05 15:13:24 UTC (rev 19769)
+++ trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java   
2008-05-05 15:26:23 UTC (rev 19770)
@@ -337,6 +337,9 @@
                }
                HTMLNode bookmarksBox = 
content.addChild(pageMaker.getInfobox("infobox-normal", 
L10n.getString("BookmarkEditorToadlet.myBookmarksTitle")));
                
pageMaker.getContentNode(bookmarksBox).addChild(getBookmarksList());
+               
+               HTMLNode addDefaultBookmarksForm = ctx.addFormChild(content, 
"", "AddDefaultBookmarks");
+               addDefaultBookmarksForm.addChild("input", new String[]{"type", 
"name", "value"}, new String[]{"submit", "AddDefaultBookmarks", 
L10n.getString("BookmarkEditorToadlet.addDefaultBookmarks")});

                this.writeHTMLReply(ctx, 200, "OK", pageNode.generate());
        }


Reply via email to