sr-npm 1.7.759 → 1.7.761
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
|
@@ -16,11 +16,13 @@ let currentJobs=[] // current jobs that are displayed in the jobs repeater
|
|
|
16
16
|
let allsecondarySearchJobs=[] // secondary search results that are displayed in the jobs repeater
|
|
17
17
|
let currentSecondarySearchJobs=[] // current secondary search results that are displayed in the jobs repeater
|
|
18
18
|
let secondarySearchIsFilled=false // whether the secondary search is filled with results
|
|
19
|
+
let originalQueryParamas;
|
|
19
20
|
const pagination = {
|
|
20
21
|
pageSize: 10,
|
|
21
22
|
currentPage: 1,
|
|
22
23
|
};
|
|
23
24
|
async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
25
|
+
originalQueryParamas=urlParams;
|
|
24
26
|
await loadData(_$w);
|
|
25
27
|
await loadJobsRepeater(_$w);
|
|
26
28
|
await loadPrimarySearchRepeater(_$w);
|
|
@@ -50,10 +52,10 @@ async function loadPrimarySearchRepeater(_$w) {
|
|
|
50
52
|
});
|
|
51
53
|
|
|
52
54
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.CATEGORY_RESULTS_REPEATER).onItemReady(async ($item, itemData) => {
|
|
53
|
-
console.log("itemData#$@#$%@#$@#$@#$: ", itemData);
|
|
54
55
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).label = itemData.title || '';
|
|
55
56
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).onClick(async () => {
|
|
56
|
-
location.to(
|
|
57
|
+
location.to(`/search?category=${itemData._id}`);
|
|
58
|
+
await handleUrlParams(_$w,originalQueryParamas);
|
|
57
59
|
});
|
|
58
60
|
});
|
|
59
61
|
}
|
|
@@ -429,6 +431,7 @@ function primarySearch(_$w,query) {
|
|
|
429
431
|
console.log("primary search query: ", query);
|
|
430
432
|
|
|
431
433
|
let filteredJobs=alljobs.filter(job=>job.title.toLowerCase().includes(query));
|
|
434
|
+
console.log("filteredJobs.length: ", filteredJobs.length);
|
|
432
435
|
if(filteredJobs.length>0) {
|
|
433
436
|
alljobs=filteredJobs;
|
|
434
437
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_MULTI_BOX).changeState("jobResults");
|