Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

additional fix for the widget - now a second result page is loaded automatically in case of too little search results for the scroll event to trigger

apfelmaennchenbeb65437d241
diff --git a/htroot/yacy/ui/js/yacyui-portalsearch.js b/htroot/yacy/ui/js/yacyui-portalsearch.js
index 850a68594..19ca09481 100644
--- a/htroot/yacy/ui/js/yacyui-portalsearch.js
+++ b/htroot/yacy/ui/js/yacyui-portalsearch.js
@@ -171,6 +171,7 @@ function yrun() {
if(e.which == 27) { // ESC
$("#ypopup").dialog('close');
+ $("#yquery").setValue("");
} else if(e.which == 39) { // Right
startRecord = startRecord + maximumRecords;
yacysearch(submit, false);
@@ -309,8 +310,15 @@ function yacysearch(global, clear) {
}
}
);
- if(count>0)
+ if(count>0) {
autoOpenSidebar();
+ if ($("#ypopup").dialog('isOpen')) {
+ if($("#ypopup h3 :last").position().top < yconf.height) {
+ startRecord = startRecord + maximumRecords;
+ yacysearch(submit, false);
+ }
+ }
+ }
}
}
);