Skip to content

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

small fix

apfelmaennchen84518710d0c8
diff --git a/htroot/yacy/ui/js/yacyui-portalsearch.js b/htroot/yacy/ui/js/yacyui-portalsearch.js
index fa2eb3d56..d7fa49da5 100644
--- a/htroot/yacy/ui/js/yacyui-portalsearch.js
+++ b/htroot/yacy/ui/js/yacyui-portalsearch.js
@@ -92,7 +92,7 @@ $(document).ready(function() {
startRecord = 0;
if ($("#yquery").getValue() == '') {
$("#ypopup").dialog('close');
- } else {
+ } else {
if(!submit) yacysearch(false);
else submit = false;
}
@@ -116,7 +116,10 @@ function yacysearch(global) {
var param = [];
$("#ysearch input").each(function(i){
var item = { name : $(this).attr('name'), value : $(this).attr('value') };
- if(global && (item.name == 'resource')) item.value = 'global';
+ if(item.name == 'resource') {
+ if(item.value == 'global') global = true;
+ if(global) item.value = 'global';
+ }
param[i] = item;
});
param[param.length] = { name : 'startRecord', value : startRecord };