Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- Fix for the redisplay of hidden results in Opera, see http://forum.yacy-websuche.de/viewtopic.php?f=6&t=140 for details. - Now the message that there are hidden results is hidden when all results are displayed again.
michitux8ebfd732ceab
diff --git a/htroot/env/base.css b/htroot/env/base.cssindex 614c31b02..f0457e9c1 100644--- a/htroot/env/base.css+++ b/htroot/env/base.css@@ -253,6 +253,10 @@ div.searchresults {margin-bottom:1em;}+div.searchresults.hidden {+ display:none;+}+div.SubMenugroup{float:left;margin-right:1px;diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.jsindex ad400d8a8..cb37bdb29 100644--- a/htroot/js/yacysearch.js+++ b/htroot/js/yacysearch.js@@ -102,10 +102,13 @@ function requestImageSnippet(url, query, progressbar){}function show_hidden_results(){- results=document.getElementsByName("searchresults");- for(i=0;i<results.length;i++){- results[i].setAttribute("style", "display: visible");- }+ var results = document.getElementsByTagName("div");+ for (var i = 0; i < results.length; i++) {+ var result = results[i];+ if (result.className == "searchresults hidden")+ result.className = "searchresults";+ }+ document.getElementById("hidden_results").innerHTML = "";}function handleTextState(req) {if(req.readyState != 4){@@ -127,7 +130,7 @@ function handleTextState(req) {span.className = "snippetLoaded";} else {span.className = "snippetError";- span.parentNode.parentNode.setAttribute("style", "display: none");+ span.parentNode.parentNode.className = "searchresults hidden";document.getElementById("hidden_results").innerHTML='Some results were hidden, because they do not contain your searchwords anymore, or because they are not accessible. Click here to <a href="javascript:show_hidden_results()">show them</a>';}