Author: fred
Date: 2007-04-25 22:06:52 +0000 (Wed, 25 Apr 2007)
New Revision: 12961
Modified:
trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
Log:
hide 'cut' icon when a bookmark is cuted
Modified: trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
2007-04-25 20:47:19 UTC (rev 12960)
+++ trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
2007-04-25 22:06:52 UTC (rev 12961)
@@ -55,9 +55,10 @@
actions.addChild("a", "href", "?action=edit&bookmark="
+ itemPath).addChild("img", new String[] {"src", "alt", "title"}, new String[]
{"/static/icon/edit.png", "edit", "Edit"});
actions.addChild("a", "href", "?action=del&bookmark=" +
itemPath).addChild("img", new String[] {"src", "alt", "title"}, new String[]
{"/static/icon/delete.png", "delete", "Delete"});
-
- actions.addChild("a", "href", "?action=cut&bookmark=" +
itemPath).addChild("img", new String[] {"src", "alt", "title"}, new String[]
{"/static/icon/cut.png", "cut", "Cut"});
+ if("".equals(cutedPath))
+ actions.addChild("a", "href",
"?action=cut&bookmark=" + itemPath).addChild("img", new String[] {"src", "alt",
"title"}, new String[] {"/static/icon/cut.png", "cut", "Cut"});
+
if(i != 0)
actions.addChild("a", "href",
"?action=up&bookmark=" + itemPath).addChild("img", new String[] {"src", "alt",
"title"}, new String[] {"/static/icon/go-up.png", "up", "Go up"});
@@ -84,9 +85,10 @@
actions.addChild("a", "href",
"?action=addItem&bookmark=" + catPath).addChild("img", new String[] {"src",
"alt", "title"}, new String[] {"/static/icon/bookmark-new.png", "add bookmark",
"Add bookmark"});
actions.addChild("a", "href",
"?action=addCat&bookmark=" + catPath).addChild("img", new String[] {"src",
"alt", "title"}, new String[] {"/static/icon/folder-new.png", "add category",
"Add category"});
-
- actions.addChild("a", "href", "?action=cut&bookmark=" +
catPath).addChild("img", new String[] {"src", "alt", "title"}, new String[]
{"/static/icon/cut.png", "cut", "Cut"});
+ if("".equals(cutedPath))
+ actions.addChild("a", "href",
"?action=cut&bookmark=" + catPath).addChild("img", new String[] {"src", "alt",
"title"}, new String[] {"/static/icon/cut.png", "cut", "Cut"});
+
if(i != 0)
actions.addChild("a", "href",
"?action=up&bookmark=" + catPath).addChild("img", new String[] {"src", "alt",
"title"}, new String[] {"/static/icon/go-up.png", "up", "Go up"});