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

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7245 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 14 years ago
parent 2bb0c9b503
commit beb65437d2

@ -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);
}
}
}
}
}
);

Loading…
Cancel
Save