sr-npm 1.7.758 → 1.7.760
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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const { COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
|
|
2
2
|
const { queryParams } = require('wix-location-frontend');
|
|
3
3
|
const {CAREERS_MULTI_BOXES_PAGE_CONSTS,FiltersIds,fieldTitlesInCMS,CATEGORY_CUSTOM_FIELD_ID_IN_CMS} = require('../backend/careersMultiBoxesPageIds');
|
|
4
|
+
const { location } = require("@wix/site-location");
|
|
4
5
|
const { groupValuesByField, debounce, getAllRecords, getFieldById, getFieldByTitle,getCorrectOption,getOptionIndexFromCheckBox } = require('./pagesUtils');
|
|
5
6
|
|
|
6
7
|
let dontUpdateThisCheckBox;
|
|
@@ -49,10 +50,9 @@ async function loadPrimarySearchRepeater(_$w) {
|
|
|
49
50
|
});
|
|
50
51
|
|
|
51
52
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.CATEGORY_RESULTS_REPEATER).onItemReady(async ($item, itemData) => {
|
|
52
|
-
console.log("itemData#$@#$%@#$@#$@#$: ", itemData);
|
|
53
53
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).label = itemData.title || '';
|
|
54
54
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).onClick(async () => {
|
|
55
|
-
|
|
55
|
+
location.to(`/search?category=${itemData._id}`);
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -428,6 +428,7 @@ function primarySearch(_$w,query) {
|
|
|
428
428
|
console.log("primary search query: ", query);
|
|
429
429
|
|
|
430
430
|
let filteredJobs=alljobs.filter(job=>job.title.toLowerCase().includes(query));
|
|
431
|
+
console.log("filteredJobs.length: ", filteredJobs.length);
|
|
431
432
|
if(filteredJobs.length>0) {
|
|
432
433
|
alljobs=filteredJobs;
|
|
433
434
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_MULTI_BOX).changeState("jobResults");
|
package/pages/careersPage.js
CHANGED
|
@@ -5,6 +5,7 @@ const { query,queryParams,onChange} = require("wix-location-frontend");
|
|
|
5
5
|
const { location } = require("@wix/site-location");
|
|
6
6
|
const { COLLECTIONS } = require('../backend/collectionConsts');
|
|
7
7
|
const { careersMultiBoxesPageOnReady } = require('./careersMultiBoxesPage');
|
|
8
|
+
|
|
8
9
|
const {
|
|
9
10
|
debounce,
|
|
10
11
|
getFilter,
|