sr-npm 2.1.1 → 3.0.2

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/backend/data.js CHANGED
@@ -41,7 +41,7 @@ async function filterBasedOnBrand(positions) {
41
41
 
42
42
  const desiredBrand = await getTokenFromCMS(TOKEN_NAME.DESIRED_BRAND);
43
43
  validateSingleDesiredBrand(desiredBrand);
44
- console.log("filtering positions based on brand: ", desiredBrand);
44
+ console.log("filtering positions based on brand: ", desiredBrand);\
45
45
  return positions.content.filter(position => {
46
46
  const brand = getBrand(position.customField);
47
47
  if (!brand) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "2.1.1",
3
+ "version": "3.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- const { CAREERS_PAGE_SELECTORS, COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
1
+ const { COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
2
2
 
3
3
  const { queryParams,onChange} = require('wix-location-frontend');
4
4
  const { location } = require("@wix/site-location");
@@ -23,13 +23,12 @@ const pagination = {
23
23
  pageSize: 10,
24
24
  currentPage: 1,
25
25
  };
26
-
27
26
  async function careersMultiBoxesPageOnReady(_$w,urlParams) {
28
27
  //to handle back and forth , url changes
29
28
  onChange(async ()=>{
30
29
  await handleBackAndForth(_$w);
31
30
  });
32
-
31
+
33
32
  await loadData(_$w);
34
33
  loadJobsRepeater(_$w);
35
34
  loadPrimarySearchRepeater(_$w);
@@ -221,6 +221,7 @@ async function handleBackAndForth(_$w){
221
221
  }
222
222
  else{
223
223
  queryDepartmentVar=undefined;
224
+ deletedParam=true;
224
225
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_DEPARTMENT).value = '';
225
226
  }
226
227
  if(newQueryParams.location){
@@ -228,6 +229,7 @@ async function handleBackAndForth(_$w){
228
229
  }
229
230
  else{
230
231
  queryLocationVar=undefined;
232
+ deletedParam=true
231
233
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_LOCATION).value = '';
232
234
  }
233
235
  if(newQueryParams.keyWord){
@@ -235,6 +237,7 @@ async function handleBackAndForth(_$w){
235
237
  }
236
238
  else{
237
239
  queryKeyWordVar=undefined;
240
+ deletedParam=true;
238
241
  _$w(CAREERS_PAGE_SELECTORS.SEARCH_INPUT).value = '';
239
242
  }
240
243
  if(newQueryParams.jobType){
@@ -242,6 +245,7 @@ async function handleBackAndForth(_$w){
242
245
  }
243
246
  else{
244
247
  queryJobTypeVar=undefined;
248
+ deletedParam=true;
245
249
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_JOB_TYPE).value = '';
246
250
  }
247
251
  if(_$w(CAREERS_PAGE_SELECTORS.DROPDOWN_BRAND).isVisible){
@@ -250,6 +254,7 @@ async function handleBackAndForth(_$w){
250
254
  }
251
255
  else{
252
256
  queryBrandVar=undefined;
257
+ deletedParam=true;
253
258
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_BRAND).value = '';
254
259
  }
255
260
  }