- when there are no topics, the topics window is not shown

- othervise: close topics window by default
There will be more navigation in the future (i.e. update-time selection)
and the topics will be less important than the others, therefore
it is now hidden by default

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6310 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 27d00285aa
commit 5658044388

@ -55,6 +55,7 @@ $(function() {
$("#sidebar2").accordion({});
$("#sidebar2").accordion('activate', false);
$("#sidebar3").accordion({});
$("#sidebar3").accordion('activate', false);
$("#search").focus();
});
//]]>

@ -106,7 +106,11 @@ public class yacysearchtrailer {
// attach always the topics
ArrayList<NavigatorEntry> topicNavigator = theSearch.getTopicNavigator(10);
if (topicNavigator == null) topicNavigator = new ArrayList<NavigatorEntry>();
if (topicNavigator == null || topicNavigator.size() == 0) {
topicNavigator = new ArrayList<NavigatorEntry>();
prop.put("nav-topics", "0");
} else {
prop.put("nav-topics", "1");
int i = 0;
NavigatorEntry e;
Iterator<NavigatorEntry> iter = topicNavigator.iterator();
@ -126,7 +130,7 @@ public class yacysearchtrailer {
}
}
prop.put("nav-topics_element", i);
prop.put("nav-topics", "1");
}
serverProfiling.update("SEARCH", new ProfilingGraph.searchEvent(theQuery.id(true), SearchEvent.FINALIZATION + "-" + "bottomline", 0, 0), false);

Loading…
Cancel
Save