1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

search: fix pagination

* Fixes start index field name mismatch
* Deduplicates the `hcsearch` fuction

Signed-off-by: Jiri Fiala <jfiala@redhat.com>
This commit is contained in:
Jiří Fiala
2019-11-26 07:51:10 +01:00
committed by openshift-cherrypick-robot
parent b405d13abe
commit 30e89c3ab4
2 changed files with 2 additions and 55 deletions

View File

@@ -54,7 +54,7 @@ function hcsearch(searchParams) {
var searchprovider = "https://search.help.openshift.com/json";
var searchReq = { "q" : searchParams.q + searchParams.urlFilter,
"fields.label" : searchParams.label,
"si" : searchParams.si } // q = query, l = label
"start" : searchParams.si }
hcMoreBtn.hide();
hcSearchIndicator.show();