Author: dbkr
Date: 2007-02-12 20:45:43 +0000 (Mon, 12 Feb 2007)
New Revision: 11764

Modified:
   trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
Don't show the cancel button in the bookmark edit form when in 'add' mode. It 
doesn't do anything remotely useful.


Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2007-02-12 
07:53:12 UTC (rev 11763)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2007-02-12 
20:45:43 UTC (rev 11764)
@@ -618,8 +618,8 @@
                        editForm.addChild("input", new String[] { "type", 
"name", "value", "class" }, new String[] { "submit", "addbookmark", "Add 
bookmark", "confirm" });
                } else {
                        editForm.addChild("input", new String[] { "type", 
"name", "value", "class" }, new String[] { "submit", "update_" + b.hashCode(), 
"Update bookmark", "confirm" });
+                        editForm.addChild("input", new String[] { "type", 
"value", "class" }, new String[] { "submit", "Cancel", "cancel" });
                }
-               editForm.addChild("input", new String[] { "type", "value", 
"class" }, new String[] { "submit", "Cancel", "cancel" });
                editForm.addChild("input", new String[] { "type", "name", 
"value" }, new String[] { "hidden", "managebookmarks", "yes" });
                return infobox;
        }


Reply via email to