diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2017-10-11 07:13:28 +0200 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2017-10-11 07:13:28 +0200 |
| commit | 2ac78e2cca3d04b894a65452f56adf0bc6e07550 (patch) | |
| tree | 243cdaf106bdfd65217614f8fec68053062bb4d3 /htroot/js/yacysort.js | |
| parent | ebe91c70754b79efaae42bff0ddacf8104cb7e13 (diff) | |
Addedd missing parameters to yacysearchtrailer call on JS resort mode
Diffstat (limited to 'htroot/js/yacysort.js')
| -rw-r--r-- | htroot/js/yacysort.js | 17 |
1 files changed, 14 insertions, 3 deletions
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 ); |
