Skip to content

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

Addedd missing parameters to yacysearchtrailer call on JS resort mode

luccioman2ac78e2cca3d
diff --git a/htroot/js/yacysort.js b/htroot/js/yacysort.js
index fb0b378b8..21f65f766 100644
--- a/htroot/js/yacysort.js
+++ b/htroot/js/yacysort.js
@@ -264,11 +264,22 @@ var processSidebar = function(data) {
};
var updateSidebar = function() {
+ var trailerParams = {
+ "eventID": theEventID,
+ "resource": "global"
+ };
+ var searchForm = document.forms.searchform;
+ if(searchForm != null) {
+ if(searchForm.resource != null && searchForm.resource.value != null) {
+ trailerParams.resource = searchForm.resource.value;
+ }
+ if(searchForm.auth != null && searchForm.auth.value != null) {
+ trailerParams.auth = searchForm.auth.value;
+ }
+ }
$.get(
"yacysearchtrailer.html",
- {
- "eventID": theEventID,
- },
+ trailerParams,
processSidebar
);