- a time-out of 10 seconds
- and a clear-on-error
in yacyui-portalsearch, to make the loading bar disappear when nothing is found.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6289 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent ce972ff4ef
commit 847c3027ff

@ -243,6 +243,10 @@ function yacysearch(global, clear) {
param[i] = item;
});
param[param.length] = { name : 'startRecord', value : startRecord };
$.ajaxSetup({
timeout: 10000,
error: function() {if (clear) $('#ypopup').empty();}
});
$.getJSON(url, param,
function(json, status) {
if (json[0]) data = json[0];

Loading…
Cancel
Save