sr-npm 1.7.747 → 1.7.748
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -439,12 +439,11 @@ async function secondarySearch(_$w,query) {
|
|
|
439
439
|
console.log("secondary search query is empty, resetting secondary search");
|
|
440
440
|
// allsecondarySearchJobs=currentJobs;
|
|
441
441
|
secondarySearchIsFilled=false;
|
|
442
|
+
return;
|
|
442
443
|
}
|
|
443
444
|
else {
|
|
444
445
|
allsecondarySearchJobs=currentJobs.filter(job=>job.title.toLowerCase().includes(query));
|
|
445
446
|
currentSecondarySearchJobs=allsecondarySearchJobs;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
447
|
const jobsFirstPage=allsecondarySearchJobs.slice(0,pagination.pageSize);
|
|
449
448
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = jobsFirstPage;
|
|
450
449
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = jobsFirstPage.length.toString();
|
|
@@ -457,6 +456,7 @@ async function secondarySearch(_$w,query) {
|
|
|
457
456
|
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_MULTI_STATE_BOX).changeState("searchResult");
|
|
458
457
|
}
|
|
459
458
|
secondarySearchIsFilled=true
|
|
459
|
+
}
|
|
460
460
|
handlePaginationButtons(_$w);
|
|
461
461
|
updateTotalJobsCountText(_$w);
|
|
462
462
|
await refreshFacetCounts(_$w); //false for clearAll, true for secondarySearch
|