- another update to Bookmarks.html

- only calculate tags and folders if display = 0

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5556 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent ab1a09ab95
commit 35a5116606

@ -71,6 +71,7 @@ public class Bookmarks {
int max_count = 10;
int start=0;
int display = 0;
String tagName = "";
String username="";
@ -124,9 +125,11 @@ public class Bookmarks {
if(mode.equals("add")){
prop.put("mode", "2");
prop.put("display", "1");
display = 1;
}else if(mode.equals("importxml")){
prop.put("mode", "3");
prop.put("display", "1");
display = 1;
}
}else if(post.containsKey("add")){ //add an Entry
final String url=post.get("url");
@ -166,6 +169,7 @@ public class Bookmarks {
final String urlHash=post.get("edit");
prop.put("mode", "2");
prop.put("display", "1");
display = 1;
if (urlHash.length() == 0) {
prop.put("mode_edit", "0"); // create mode
prop.putHTML("mode_title", post.get("title"));
@ -251,6 +255,7 @@ public class Bookmarks {
}
} // END if(post != null)
if (display == 0) {
//-----------------------
// create tag list
@ -344,8 +349,7 @@ public class Bookmarks {
count = 0;
count = recurseFolders(sb.bookmarksDB.getFolderList(isAdmin),"/",0,true,"");
prop.put("display_folderlist", count);
}
return prop; // return from serverObjects respond()
}

Loading…
Cancel
Save