sr-npm 1.7.791 → 1.7.792
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,5 +1,5 @@
|
|
|
1
1
|
const { COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
|
|
2
|
-
const { queryParams} = require('wix-location-frontend');
|
|
2
|
+
const { queryParams,to:myto} = require('wix-location-frontend');
|
|
3
3
|
const { location } = require("@wix/site-location");
|
|
4
4
|
const {CAREERS_MULTI_BOXES_PAGE_CONSTS,FiltersIds,fieldTitlesInCMS,CATEGORY_CUSTOM_FIELD_ID_IN_CMS} = require('../backend/careersMultiBoxesPageIds');
|
|
5
5
|
const { groupValuesByField, debounce, getAllRecords, getFieldById, getFieldByTitle,getCorrectOption,getOptionIndexFromCheckBox } = require('./pagesUtils');
|
|
@@ -68,7 +68,29 @@ async function loadPrimarySearchRepeater(_$w) {
|
|
|
68
68
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).label = itemData.title || '';
|
|
69
69
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).onClick(async () => {
|
|
70
70
|
console.log("primary search category button clicked#%@#%%#$#$%: ", itemData);
|
|
71
|
-
|
|
71
|
+
if(itemData.title==="In-Store (91)") {
|
|
72
|
+
console.log("In-Store (91) button clicked");
|
|
73
|
+
const url = await location.url();
|
|
74
|
+
console.log("url: ", url);
|
|
75
|
+
await location.to(`${url}?category=${encodeURIComponent(itemData._id)}`);
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
if(itemData.title==="Distribution Centres (20)") {
|
|
79
|
+
console.log("Distribution Centres (20) button clicked");
|
|
80
|
+
await location.to(`https://google.com`);
|
|
81
|
+
}
|
|
82
|
+
if(itemData.title==="Merchandise (7)")
|
|
83
|
+
{
|
|
84
|
+
console.log("Merchandise (7) button clicked");
|
|
85
|
+
myto ("https://youtube.com");
|
|
86
|
+
}
|
|
87
|
+
if(itemData.title==="People (1)")
|
|
88
|
+
{
|
|
89
|
+
console.log("People (1) button clicked");
|
|
90
|
+
myto (`/search?category=${encodeURIComponent(itemData._id)}`);
|
|
91
|
+
}
|
|
92
|
+
//await location.to(`/search?category=${encodeURIComponent(itemData._id)}`);
|
|
93
|
+
// await location.to(`/search?category=${encodeURIComponent(itemData._id)}`);
|
|
72
94
|
// await clearAll(_$w);
|
|
73
95
|
// let encodedCategory=encodeURIComponent(itemData._id);
|
|
74
96
|
// queryParams.add({ category:encodedCategory });
|