mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-22 09:14:38 -04:00
- 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. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3994 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
htroot
4
htroot/env/base.css
vendored
4
htroot/env/base.css
vendored
@ -253,6 +253,10 @@ div.searchresults {
|
||||
margin-bottom:1em;
|
||||
}
|
||||
|
||||
div.searchresults.hidden {
|
||||
display:none;
|
||||
}
|
||||
|
||||
div.SubMenugroup{
|
||||
float:left;
|
||||
margin-right:1px;
|
||||
|
@ -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>';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user